My current project is built on Java 6. I'm thinking of upgrading it to Java 8.
Here is the details of the build.properties
xdoclet.home=D:/**/xdoclet-1.2.3
jboss.deploy.dir=D:/**/jboss-6.1.0.Final
application.dir=D:/**/**/cal
middlegen.home=D:/**/middlegen-2.0-b1
compiler.home=C:/Program Files/Java/jdk1.6.0_24/bin/javac .
I've tried building the project on JDK 8 and it is building successfully.
I know that I have to upgrade every libraries so that it can work with JDK 8.
How can I make sure about the dependencies to be correct as there are so many jars? And also Do I have to change my Jboss Application Server to Wildfly Application Server as Jboss AS 7 doesn't support JDK 8?
Please suggest how to approach. Any help appreciated.
And also let me know if it's better to build the project from Scratch in JDK 8 than upgrading it to JDK 8.
1) If you need to use jdk8 than you have to switch too the newer jboss.
2) It is not required to updated all jar's since jdk8 can run older jars
it there is no compatibility problem.
3) If you already have an large probject it is faster to keep it.
4) You can review your code and use the new java 8 features like "<>" and "try()"
For more qualified answer your question is to unspecific.
I would like to suggest you to update JBOSS 6 to wildfly 8 if there is a change required for the updation of JDK 6 to JDK 8.
But there is some other way!!! you can run your JBOSS 6 externally and add the the project.war file in JBOSS>>standalone>>deployment.
For Upgrade of JDK 8,i would suggest to go through JDK 8 feature and see where you can implement the new feature of java in your source code and have a mock testing class for the same.Make sure you have a mock project as it is the good practice for the enhancement of the project.
Related
We have developed some framework using java 6 and maven. Now we are upgrading that but when we change the dependency for tools.jar from java 6 to java 8 we are getting compilation error at AnnotationProcessorFactory because in java 8 tools.jar com.sun.mirror package is missing which was in java 6 tools.jar.
Could you please suggest the way so that i can continue upgrade with java 8 .
What i tried :
I tried by adding apt-mirror-api-0.1.jar but that was not worked.
Please suggest.
Thanks,
Ganesh.
For such issue I found two approach ,
Build com.sun.mirror using jdk 6 tools.jar by adding dependency in maven and keep rest
for jdk 1.8 and during use in another project exclude com.sun.mirror in project
dependency.
We need to go for latest version of Enunciate.
https://github.com/stoicflame/enunciate/wiki/Migration-Guide
Welcome any suggestions.
Thanks,
Ganesh N.
I want to migrate my Maven project to JDK 11. But I want to keep support for JDK 8.
Problems so far are:
<maven.compiler.release> is supported since Java 9. How to use it in JDK 11 but ignore it in JDK 8?
I'm using Apache HttpClient in Java 8. Java 11 has a new built in HTTP client and Apache HttpClient 4.x has some issues on Java 11. Is there a way to use JDK's HttpClient in Java 11 and Apache's in Java 8?
How to deal with those problems? Is it possible to make a project work in different JDKs like this? Or is the only way to keep the smallest commonality for everything?
If you still have to support Java 8, stay on Java 8. Chances are that you will find more problems when trying to achieve this and it might cost you a lot of time.
When you can get rid of Java 8 support, migrate the whole application once to Java 11 and save your time right now.
I can not get TomEE 7.0.4 to work with java 9 and 10.
TomEE 7.0.4 does not work with java 9 and 10.
I think I understand that it is necessary to configure catalina.bat (I use windows).
If I understood correctly, it all depends on the modules of jdk 9.
I'm going crazy in finding a solution.
To please help me to understand how to configure TomEE (catalina.bat or other)?
TomEE up to version 7.0.4 won't work with Java 9/10. This is due to the use of org.apache.xbean.asm5 classes in the bundled OWB jars. The TomEE team is working hard to resolve these issues, has integrated ASM 6.1 already and the upcoming release of TomEE 7.0.5 will thus be compatible with Java 9/10.
So, you have to stick with Java 8 for a while until TomEE 7.0.5 has been released and is available for download. Check this link in the next weeks for updates.
Hope it helps.
UPDATE:
On July 23rd, TomEE 7.0.5 was released. It runs fine with Java 9 and 10. I tested it on all three major OS platforms. Check the download link above for the release artifacts.
My application is based on Eclipse 3.8, and I'd like to know if it will run over Java.
I'm not using a newer version because it has performance issues. From my experience, Eclipse 3.8 is a lot faster compared to any newer versions of Eclipse.
Does someone know something about this?
UPDATE: The previous title may suggest that I want Eclipse 3.8 to be able to support the new features of Java 9. But, I really just want to know if I'll be able to run the application over Java 9 JRE.
Yes it works, but only with a small patch.
It fails because the org.eclipse.osgi bundle of Eclipse 3.8 (Juno) has no runtime profiles for Java 8 or Java 9. If you add those it works for me.
I made successful tests with an RCP-based app on target plattform 3.8.2 (http://archive.eclipse.org/eclipse/downloads/drops/R-3.8.2-201301310800/) running under Java 9 Oracle JVM under Windows 7.
What to do:
You have to patch the org.eclipse.osgi bundle:
strip signing information
manually add an entry for the Java 9 Runtime Enironment in the profile.list of the bundle and add a JavaSE-1.9.profile definition
E.g.: https://github.com/derWallace/org.eclipse.osgi
But no guarantees that this is a good deal for production!
No. Oxygen (4.7) and newer only is what's planned. If your performance findings are verifiable and repeatable, file bug reports about them.
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.