Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Java 8 and Java 9 interoperability
Java 8 and Java 9 interoperability [message #1770208] Wed, 09 August 2017 02:56 Go to next message
Eclipse UserFriend
Java 9 will be released on the 21st of September. The eclipse IDE already supports this new version. But during testing a rcp application I ran into problems.

To run an rcp application with java 9, some parameters need to be added to the ini file:
--add-modules=java.se.ee
--add-opens=java.base/java.lang=java.xml.bind
--add-opens=java.base/java.util=java.xml.bind

Despite some reflection warnings from some libraries, the application runs fine.

But with this modification, the application won't start anymore with java 8 as the new parameters are unknown there.

Is there any way to run a rcp application with both java 8 and java 9.
Re: Java 8 and Java 9 interoperability [message #1773290 is a reply to message #1770208] Tue, 26 September 2017 03:46 Go to previous message
Eclipse UserFriend
I am also interested in a solution. The users of my RCP do not care about Java 8 vs. Java 9. (I actually have enough troubles explaining 32bit vs. 64bit as it depends on the Java VM not the Operating System).

Looking at Bug 493761, the Launcher would not pass the Java 9 parameters ("--add-modules") to a Java 8 VM, but that was behavior removed again.

Have you tried the VM option to ignore unrecognized parameters?
-XX:+IgnoreUnrecognizedVMOptions
Previous Topic:RCP application migrated to e4 based on compatibility layer key binding is ignored
Next Topic:Add MenuEntry in the Properties View Rightclick Menu
Goto Forum:
  


Current Time: Sun Jul 13 08:50:38 EDT 2025

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

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

Back to the top