Need javolution and jdk version - java

I want to know the javolution and jna jar version which is supported by jdk 1.4.
Thanks in advance.

There is a pre built release for Javolution 5.5.1 which appears to be for Java 5.0. However, using ant it can built for j2me, gcj, 1.4, 1.5 and 1.6.

Related

Can a jar which is compiled on old java version be used in new applications?

We are planning to upgrade our J2EE application, I worked with a lot of jars before and I know that the version mismatch can be a hard problem to debug. We have all the jars(internal to company and built by some other team so cannot recompile with latest version ) compiled using 1.6 jdk and we are bumping up our application version to 1.7, but we are planning to use 1.6 version jars in our app. Does this work well? If not what should I do to make it compatible?
I'm sure that it will work well but, need some expert opinion on this.
Thank yo
As you can see on Oracle's homepage regarding compatibility of Java 1.7 it should be compatibale except for the following things
Binary Compatibility
Java SE 7 is binary-compatible with Java SE 6 except for the
incompatibilities listed below. Except for the noted incompatibilities,
class files built with the Java SE 6 compiler will run correctly in Java SE 7.
Quote from oracle

Version compatibility issues?

I'm new to opentaps environment. I have some doubt in opentaps. I have opentaps1.5 version. It is contain apache 6.0.26 and ofbiz 10 version. I want to work using jdk1.8. While compile the program using jdk1.6 or 1.7 it is providing expected results. When I used jdk1.8 It showing
ExceptionInInitializerError.
Please tell me how to resolve this issue. I need to work opentaps1.5 with jdk1.8. Thanking you in Advance.
Apache OFBiz, which is the base of opentaps, just introduced Java 1.8 compatibility in the upcoming 14.12 branch. OFBiz 10 is very old and not maintained anymore. It is not compatible with Java 1.8.
As far as I know, opentaps is forked from OFBiz and might have newer versions which are Java 1.8 compatible.
You may want to contact the support (http://www.opentaps.org/services-support) to get more accurate informations.

Is Java 1.8.0 required for Grails 2.4.3?

Is Java 1.8.0 required for Grails 2.4.3?
Grails doc found here says java 1.6.0 and above but I am facing issues with my newly created grails app using java 1.7.0_21.
Thanks!
Is Java 1.8.0 required for Grails 2.4.3?
No. 1.8 is definitely not required by 2.4.3. It is supported, but not required.
...but I am facing issues with my newly created grails app using java
1.7.0_21
Without knowing the specifics of the issues you are facing I can't say how to resolve them but if you can update to the latest 1.7.x that would be a good starting point.
AFAIK you can use any 1.6.X or 1.7.X version of Java with Grails 2.4.3. Java 1.8.0 is not supported for this version.

JDK compiler version issue

I'm using Ant to compile Java.The project has to be compiled using JDK 1.5 , however some part of the code references a package compiled with JDK 1.6 version.
I set the JAVA_HOME to 1.5 , error is thrown at this reference as
[javac] class file has wrong version 50.0, should be 49.0
What is the way out without downgrading the reference version to 1.5
What you are asking isn't possible. You should compile your library with JDK 1.5.
Once Java has been compiled at a certain version, you cannot use that version on older versions of Java.
The package you are using might have a version available which is suitable for an older version of Java, alternatively you may be able to get the source code and recompile with the older version (if it doesn't use any Java 6 libraries / features).
Think this way:
The library you use has been compiled using JDK 6. It may be using some features introduced in Java 6 (that were not part of previous versions of Java)
When you use JDK 5 to compile and run, what do you expect the compiler (and the runtime) to do when this "new" feature is encountered? The JDK 5 does not know this feature and will be "confused"
To avoid this confusion at runtime, the compile itself fails.
You have two options:
Compile your project using JDK 6.
Get a JDK 5 compiled version of your library
If your project were using JDK 6 and the library was compiled with JDK 5, then you wouldn't have faced this issue because of backwards compatibility.

Is there any backport-util for fork join framework for Java 1.5?

when concurrency utils were introduced there was backport-util. For Java 1.6 there is an implementation for fork/join framework http://www.cs.washington.edu/homes/djg/teachingMaterials/grossmanSPAC_forkJoinFramework.html
Is there any alternative for Java 1.5?
I would not expect any back ports of new functionality in JDK 7 to 1.5 since that's two major versions back. Is there a reason you can't upgrade to JDK 1.6?
On this page http://g.oswego.edu/dl/concurrency-interest/ you can find all the packages related to the JSR-166 (java.util.concurrent). There are also backported packages for the JDK6, support for 1.5 doesn't seem to be available.

Categories

Resources