Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » build on one JDK (say OpenJDK) , and deploy to run on another JDK ((JDK Build deployment)
build on one JDK (say OpenJDK) , and deploy to run on another JDK ( [message #1803782] Sat, 09 March 2019 12:48 Go to next message
Al Asghar is currently offline Al AsgharFriend
Messages: 1
Registered: March 2019
Junior Member
Hello -

Can I build on one JDK (say OpenJDK) , and deploy to run on another JDK (say on IBM Websphere JDK) ?

Looking for Subject matter experts to chime in, Why this might or might not be a good idea.

Thanks
Re: build on one JDK (say OpenJDK) , and deploy to run on another JDK ( [message #1803941 is a reply to message #1803782] Thu, 14 March 2019 03:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
The Java APIs should all be the same across all JDKs vendor/variants, and because the APIs are generally binary compatible, it's quite common to build say against Java 5 and to run on Java 8, or to build against Java 8 and to run on Java 11; the other way around is of course not a great idea because you might (accidentally) use Java APIs only available in Java 8 that will fail to run on Java 5 because of course things would be missing. But in any case, the vendor providing the Java libraries should not generally be a problem and of course Eclipse itself is built again one specific JDK version but runs on all JDKs of that version of higher, regardless of the JDK vendor.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Jar Launcher Won't Launch Eclipse's Runnable Jar
Next Topic:can not highlight all occurrence of a variable in javascript file in new version of eclipse
Goto Forum:
  


Current Time: Fri Apr 26 01:17:30 GMT 2024

Powered by FUDForum. Page generated in 0.03154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top