Morena version 6 vs 7 - java

We are currently using the Morena 6 lib to scan images. Morena 6 internally uses the TWAIN protocol and we got a big issue. All our scanners install a 32 bit TWAIN driver, so we cannot use it when we start a 64 bit version of Java. We can now switch to Morena 7 which uses the WIA protocol. But I don't know whether it solves the above described problem. I think I'm not the first who has such problems. Probably somebody can tell me whether this protocol change can solve my problem?

64-bit Java libraries should include 32-bit compatibility. I can't tell you if WIA will solve this as I haven't used WIA or Morena 7. Your Morena license will cover both 6 and 7, so you could definitely run a test application using it. What I can tell you is that WIA is the "user friendly" dumbed down version that doesn't support as many nice features as TWAIN had.
As for the architecture issue and solving for Morena 6, I have successfully run in Chrome and Firefox (both 64-bit, before NPAPI [and therefore Java] support was dropped) using 64-bit Java on 32-bit TWAIN. From what I gather though you're probably running an application, which theoretically should make this easier. You'll just need to find out how to force your application to run in 32-bit mode.

In Morena 7.1.36, there is the ability to use 32bit Twain drivers in 64bit Java.
It internally uses some 64bit surrogate process and is partly coded in assembly.
You can use it like that:
Configuration.setMode(Configuration.MODE_TWAIN_ENABLED);
or with native UI dialog:
Configuration.setMode(Configuration.MODE_NATIVE_UI | Configuration.MODE_TWAIN_ENABLED);

I had not much Knowledge about morena7 Please find the documentation in the following link
http://www.gnome.eu/Morena/doc/tutorial7.html
http://gnome.sk/Morena/morena.html

Related

How can i install Java 8 to Google Compute Engine (Debian 10)

First of all, I would like to say that I'm not a programmer and I am not experienced in the field. I was trying to set up a Minecraft server in the Google Compute Engine and I set it up successfuly. However, when I tried to switch it to a different version I could not open it because the server was running java 11. I removed it and tried a bunch of things to install Java 8 but I couldn't do it. Is there a way that i can reliably use to install java 8 to my server?
As you just pointed out, Debian 10's default and only officially supported java runtime is openjdk-11-jre.
Oracle provides their guide to download java on their website (https://java.com/en/download/help/linux_x64_install.html#download), which you can download, extract, and run.
I also found a nvidia-openjdk-8-jre package in the non-free repository of debian buster / bullseye. It exists for compatibility reasons and it's not recommendeded, but it might work.

Distribute Java 8 JRE without installation?

Our IT policies are holding back my development efforts and we are still on Java 6. I have decided I am not going to wait anymore and move my internal customers to Java 8, so I can start improving my applications with lambdas and better code.
However they do not have admin rights over their Windows machines. Is there a way I can distribute a binary or non-installation version of Java, and invoke it with a shell/batch file with my JARs?
Thanks a_horse_with_no_name and MadProgrammer, this worked very well and production has worked great with this setup. http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html

JNLP. Cause client to use JDK < 7 version

After some JDK 7 updates my applet won't work (security exceptions). How I can specify JRE version range to use by client in JNLP file? I want cause him to use only JRE 6, not 7.
What you are trying to do is a Really Bad Idea.
Java 6 has been EOL'ed and that means no more free security updates. So what you are doing is encouraging people to downgrade the version of Java used by their web browsers to an out of date version of Java that is likely to have unpatched security bugs that could soon be being actively exploited to do all sorts of nasty things to the user.
The correct approach is to fix your applet so that it works with the latest JDK update (as well as older ones).
The only way out is ,detect the version of java using in browser and giving him a proper message that ,use java 6 jre.
You might heard about deployJava.js
and check the version like
if(deployJava.versionCheck("1.7")){
//message him
}

Java EE SDK for mac

After spending 3 solid days on this with nothing to be happy about. I'm being freaked out already. I'm a newly in java and just about getting it rolling in java ee...
Please, good people here. I am confused. I am looking for Java EE 6 SDK for mac os x lion 10.7.2 64bits.
I found on oracle's website java ee 6 sdk for unix and windows and no mac... spent tons of time on google and apple's website forums and support but found nothing pertaining to this.
Is it that mac does not need Java EE 6 SDK? or what? I already have netbeans installed and eclipse as well which I've been using during my early beginning stage in java SE.
Can anyone help?
Thanks in advance!
Mac is the Unix, did you tried shell script they provided?
Java EE is an API, not a complete implementation ( that is provided by your application server where your code is deployed to).
Hence you just need the API jars. This can, however, be avoided if you get the Netbeans+Glassfish bundle, and let Netbeans do the work by choosing an appropriate template when creating a new module.

Can I do Java 6 development in OS X?

I know when Leopard came out everybody (well, everybody that was a Java developer and cared enough to do development on a Mac) was pissed that there was no Java 6 SDK support. I know somebody provided some kind of hack way a few months after Leopard was released, but I could have sworn that I read sometime later that Apple and/or Sun finally put out an official version of the Java 6 SDK.
So now a year and a half later I am finally interested in doing some Java dev on the Mac (thank Google App Kit for that). But when I go to Apple's Java site... all I see is stuff about Java 5.
So, can I do Java 6 on a Mac?
See also: Installing Java 6 on Mac OS
Yes, JDK6 is available, and it is quite nice, for example it supports DTrace, which otherwise you only get on Solaris.
The main drawback is that Apple is very aggressive in deprecating older hardware (and OS versions). Java6 will never be released for Mac versions before 10.5, and only works on 64bit Intel. That also kills native 32 bit libraries, such as SWT/Carbon, which is what Eclipse uses (they need to move to Cocoa now).
Update: Snow Leopard apparently has Java6 for 32bit Intel, too (in addition to 64bit).
http://developer.apple.com/java/ (which is only for 64-bit Macs)
http://landonf.bikemonkey.org/static/soylatte/ (SoyLatte, a separate Java 6 port).
Yes, JDK6 is available.
However, some versions of Eclipse do not support it. There is a new one (based on Cocoa) that should but it is not officially available.
You can but you have to be very wary of Apple on this one. Sun released JDK 6 in December 2006. Apple released Java 6 for MacOS X a year later.
Why the delay? It seems that integrating the new Look and Feel was the answer but we don't have an official reason.
Now if Java 6 was important to you at the time this would've been (and was) a big deal.
As other answers mention, support for certain hardware and libraries can also be problematic.
windows and Linux are (imho) still the preferred Java development platforms. If it ever becomes critical you can always do Java development on a Mac in a VM however.
Partly. Apple released its version of Java SDK 6 a few months back. But there are still some functions which are not available on Apple's SDK 6 which exist in Sun's Java SDK 6. I don't know why this is so.
For e.g., after Unisys's patent on GIF format expired, Java included the capability to write image files in GIF format in SDK6. Yet, you still can't write GIF files on Apple's SDK.
http://developer.apple.com/java/
Looks like you can.

Categories