Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I am currently migrating a project to jdk 10, and since the Java.xml.* have been deprecated, I have used Jakarta ee instead.
Which Jakarta ee version is compatible with Java 10?
Which Jakarta EE version is compatible with Java 10?
I don't know if that is actually an answerable question. Java / Jakarta EE is fundamentally a set of specifications. The specifications do not prescribe a specific Java SE platform or compatibility requirements1.
So what you should really be doing is selecting the EE implementation you intend to use (e.g. Glassfish, JBoss, WebSpere, Weblogic, Wildfly and so on) based on the versions of Java that they require.
Having said that, you should not be targeting Java 10 as an execution platform. It has reached its end of life. You should either target Java 11 (which currently the latest Java LTS release) or the latest non-LTS release. But beware that non-LTS Java releases only have a life time of 6 months.
At this point in time (2 years after its end-of-life) it is likely that most Java EE implementations will no longer (officially) support Java 10 as an execution platform.
1 - Exception: the draft for Jakarta EE 9 requires that the underlying Java platform supports at least Java SE 8.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
i would like to update from Oracle Java to Adopt OpenJDK.
Therefore i have some question before i start doing the update:
Some information about the application i use:
2 applications
Application 1 uses Java 8
Application 2 uses Java 11
My Questions:
Are there any known problems updating from oracle Java 8 to AdoptOpenJDK 8?
Are there any known problems updating from oracle Java 11 to Adopt OpenJDK 11?
Is it even possible to run a Java 8 Application on Java 11? (Can i use Adopt OpenJDK 11 for both applications?)
Is there any guideline to update from Oracle to Adopt? (Or just straigt forward?)
best regards
For a given Java version (since Java 8), the various commercially-supported OpenJDK builds are almost drop-in replacements for the Oracle JDK.
If you're writing an application with a GUI, you'll find some differences in the fonts, and in colour profiles. The Oracle JDKs also have better support for Java Flight Recorder (if anybody uses that). There's little support in OpenJDK for the ancient Java Web Start, but there are alternatives.
In my experience (which is nearly all in middleware), choice of JDK (for a given version) is almost always a decision about support, and rarely about features. I've rarely encountered any technical problems moving from Oracle JDK to OpenJDK, or vice versa.
I've also not found any problems running Java 8 applications with Java 11 and later. However, Java 11 decoupled several components -- again most related to GUI applications -- into separate JARs.
But, in the end, this is all a matter of testing, isn't it? If your testing is sufficiently thorough, any problems with compatibility will be flushed out. I certainly wouldn't rely on anybody else's claims of backward compatibility without thorough testing.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We want to migrate all our production services to Java 10 from Java 8. As I understood, we might face issues with builds (gradle etc.), dependencies etc. for development. But when it comes just to the JVM itself, i.e. running services, will we face any issues if we just install JVM 10 in production to run our jar services?
I'm not sure why this has been downvoted since it seems a reasonable question.
Oracle's own guidance for moving applications from JDK 8 and earlier to JDK 9 and later is "applications that just use java.se should just work". If you have not used (directly or indirectly via a third-party library or framework) any JDK internal APIs (sun.misc.Unsafe is the most infamous) then you can leave all your application code on the classpath and this will most likely work without change. There are a few differences that might catch you out with changes to things like command line flags.
I've written two blogs on this, which might be helpful to you:
https://www.azul.com/jdk-9-pitfalls-for-the-unwary/
https://www.azul.com/jdk-10-pitfalls-for-the-unwary/
You should also bear in mind that it doesn't make any sense to migrate to JDK 10. JDK 11 will be released next month and, at that point, updates for JDK 10 will stop. It would be better to migrate to JDK 11. If you're looking for long-term support Oracle is now charging for this. Check out our Zulu OpenJDK builds.
A good starting point is the JDK Migration Guides on the Oracle download site. The JDK 10 Migration Guide covers migration from JDK 8 to JDK 10 and can be found here:
https://docs.oracle.com/javase/10/migrate/toc.htm
Another good resource is the JDK release notes as these include notes on the known source, binary and behavioural compatibility issues. You can find the release notes for the JDK 9 and JDK 10 releases linked from here:
https://www.oracle.com/technetwork/java/javase/jdk-relnotes-index-2162236.html
Another resource is the videos from conferences. I've prepared several times on the topic of migrating to JDK 9 and beyond. A recent one from Devoxx BE 2017 can be found here:
https://www.youtube.com/watch?v=uSR5JroBp34
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I want to migrate my project from IBM websphere 6.1 to oracle weblogic 12c and my project has been developed on Jbuilder, which only supports jdk 1.5. Can I use jdk 1.5 to run it on Weblogic 12c?
No. Java 6 and up according to the support matrix linked to from here the supported platforms are
Oracle JDK 1.6.0_29+
Oracle JDK 1.7.0_02+
IBM JDK 7 (SR1+)
IBM JDK 6 (SR9 FP2 or higher)
Oracle JRockit 6 Update 29 R28.2+
On various platforms. Nothing earlier then 1.6.0_29 is on the list.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I'd like to use some Java8 features in my program. But I should deliver the program within 10 days and seeing that JRE 8 isn't available by oracle worries me. I see that Java8 features have been estabilished and looks to be very stable. My project is in the production camp and not for experiment.
When I search java runtime environment 8 or 1.8 I find nothing published by oracle. Am I making a mistake or I will have to install JDK8 for the client(The worst option). Or I should rewrite all the Java8 codes and make the software compatible with Java7.?
Is there another vendor who has the Java8 ready and if there is, is it wise to use their JRE in spite of the oracle one? Will it remain compatible?
Java 8 is not yet officially released, not from Oracle or any other vendor. There exists pre-release versions, but for a fully supported solution you have to wait until next year. You shouldn't depend on java 8 features yet for production quality code.
Update
Java 8 was fully released on 18 March 2014. It can be downloaded here (jre) or here (jdk).
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Java 6 is a stable version of this programming language. But I would like to upgrade to the current version java 7. At this time, is recommended to use java 7 in production? Where I can find updated information about the possible problems that I can get if I upgrade to java 7?
Why use or not use java 7 to make JAVA EE applications
This was added later. The main reason not to use Java 7 is that your web server might not support Java 7. e.g. some very expensive EE servers haven't got round to migrating to Java 7 in the 2.5 years since it was available for testing. IMHO this is pretty poor given the money they charge.
At this time, is recommended to use java 7 in production?
AFAIK, Java 7 is more recommended than Java 6, give it is not supported for free any more.
Java 7 is a requirement for the G1 collector, Java Mission Control and JavaFX 2.
Note: with Java 8 coming out soon with many new/powerful features, I expect many developers will be using it by the middle of 2014.
Where I can find updated information about the possible problems that I can get if I upgrade to java 7?
Most of the problems have been around client applet security.
https://blogs.oracle.com/henrik/entry/migrating_from_java_se_6
http://docs.oracle.com/javase/7/docs/webnotes/adoptionGuide/
http://www.slideshare.net/myfear/practical-migration-to-java-7
http://publib.boulder.ibm.com/infocenter/ieduasst/v1r1m0/index.jsp?topic=/com.ibm.iea.was_v7/was/7.0/Architecture/WASv7_JavaCompatibility/player.html (note this has audio)
You should use a supported Java version. Have a look at the Oracle Java SE Support Roadmap. Java 6 has reached "END OF PUBLIC UPDATES" - so it is not supported anymore.
At least you should run your Java 6 code on a Java 7 VM.
Aside from the convenient improvements to the language in 7 and the fact that 6 is no longer supported, there were some very serious security issues with 1.6 that caused Apple (amongst others) to drop default support for Java.
Those issues were fixed with 1.7 and for that reason alone, you should update.
Two blogs detailing the controversy below;
http://www.intego.com/mac-security-blog/apple-drops-java-in-latest-os-x-security-release/
http://www.darkreading.com/vulnerability/apple-removes-default-java-support-in-br/240009305
it is dependent, if you are going to make an application for android you may use Java 6, but if your creating a application for desktop it is recommended to use Java 7.
Java 7 have some improvement of course, specially on file io, which is .nio package.