Is Java 1.8.0 required for Grails 2.4.3? - java

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.

Related

How would I find which version of jdk is compatible with Grails 3.2.4?

I was given guidance that it would be jdk.1.8.0_31. However, Googling this jdk did not bring up any results. How could I be certain, and where can I find the download? The newest jdk (17.0.2) will not work with it.
For Groovy 2.4 and below I would stick to java 8, I thinks there were some issues with java 11, some fixed in Groovy 2.5, but you will still see warnings. For Grails 5+, Groovy 3 I would go for java 11. I think better support for Java 17 is coming for Groovy 4.
Grails 3.2.4 uses groovy 2.4.7
Grails 4 uses groovy 2.5.6
Grails 5 uses Groovy 3
Groovy 4 is coming "soon" so it's not in Grails yet
Grails 3 is already EOL so I would get on upgrading.
https://objectpartners.com/2015/05/14/list-of-groovy-versions-for-each-version-of-grails/
https://grails.org/blog/2021-01-22-grails-exciting-updates.html#:~:text=Grails%20Framework%20EOL%20Schedule&text=Grails%202%20will%20be%20EOL,EOL%20after%20September%2030th%2C%202021.
https://docs.grails.org/latest/guide/single.html#dependencyUpgrades
You can find and download that build version of jdk 1.8.0_31 here : https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
It should work with grails 3.2.4.
Grails 3 works with more advanced builds versions of java 8 and more recent versions of java too like java 11.
According to the Grails 3.2.4 guide, Java 7 and above should work.
If you really can't use Java 17, the latest long-term support version, I'd recommend Java 11, the previous long-term support version. You can find downloads for all currently-supported versions of Java here.

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.

Which JDK do Spring Data modules need to run?

My application will be running in a Java 7 JVM. What is the most recent version of Spring-Data-JPA that is compatible with Java 7? Can't find it here or here.
The general baseline of Spring Data modules is JDK 6. However, some of the modules (e.g. Neo4j) required a JDK 7 due to the fact that the store's Java driver already requires JDK 7.
I am using Spring-Data-Jpa 1.8.0 and my application is running ina Java 7 JVM.
If you check the reference for the newest version 1.8.1, you will see that some new features has been added in the favour of java-8 (like the use of Stream but java-7 is still supported.

java.util.Map$Entry cannot be resolved Error using Java 1.8

We are trying to migrate our application from Java 1.6 to Java 1.8. I'm able to successfully build and deploy the EAR on WL11, but when I try to access the application, I get this error:
javax.servlet.ServletException: weblogic.servlet.jsp.CompilationException: Failed to compile JSP /jsp/login/SuperAdminProgramView.jsp
SuperAdminProgramView.jsp:24:18: The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files
<%# page import="com.gxs.ncm.mvc.model.valueobject.*" %>
Could anyone kindly let know how to resolve this issue on Web logic 11 with Java 1.8. What is the solution to make it work on Java 1.8. Does the Web logic use Java 1.8 to compile the jsp or does it use the Java version which was selected during installation of Web Logic?
Unfortunately, Eclipse Ganymede is too out-of-date to be used with Java 1.8. You'll need to update to Juno or later; ideally, you'd use Luna, since it's the later and greater Eclipse.
You can find the latest Eclipse download here, or, if you'd prefer to get Eclipse Juno or Kepler, you can get that here with instructions here1 on patching it to run with Java 8.
1 I couldn't find an official Eclipse tutorial on how to upgrade, but StackOverflow seems good enough.
Using Eclipse Luna it will solve your problem, since it is compatible with Java 8.
For me, the solution was to use a newer ecj jar file, ecj-4.4.2.jar
When WebLogic finds a JSP without associated class or with an associated class compiled with a different WebLogic version it tries to recompile it during deployment.
This error is caused by an incompatibility between the WebLogic 11g JSP compiler and JDK 1.8.
In fact Oracle WebLogic 11g do not support JDK 1.8. See official certification matrix from Oracle site.
The support to JDK 1.8 was introduced in WebLogic Server 12.1.3 (see WLS 12.1.3 - What's New - Supported Configurations)
A workaround I've found is to pre-compile jsp pages using JDK 1.7 and the weblogic.appc utility from the same WebLogic version. This avoids recompilation during deployment and skips this specific error/incompatibility related only to the compiler. But I suggest to downgrade to JDK 1.7 or upgrade WebLogic to 12.1.3 or above, because of the missing official support from Oracle.

Developing webservice client on JDK 1.6 and needs to be compatible with JDK 1.5.03

I'm trying to run webservice client on JDK 1.5 and it gives me many errors such as classnotfound exception, nosuchmethod... Is it possible to add some libs such as jax-ws, axis... and run it under JDK 1.5?
What's the best approach? I have NetBeans 6.9.1 on JDK 1.6, created project compatible for JDK 1.5. It works on my machine but on other with only 1.5 doesn't.
If you want to develop for JDK1.5, then download JDK1.5, and use it to develop your application. NetBeans allows using another JDK than the one it comes with.
You're shooting yourself in the foot by targetting JDK1.5 and developing on JDK1.6.

Categories

Resources