Compile in Java 11 on EWM build engine 7.0.2
Our product uses the EWM build engine 7.0.2SR1 to compile the product. We recently moved to Java 11 but cannot get the build engine to build in Java 11. Looks like it's always using the built in Java which is Java 8. Is there a way to point to a Java 11 instance so that we can compile in Java 11?
One answer
The JBE is a headless Eclipse based tool. As far as I know, the configuration for it is done in a file jbe.ini that is in the same folder as the JBE exe.
Comments
Thanks. Tried replacing the JRE but got a circular reference. But I think I did finally figure out how to modify our javac ant call to point to a different JVM in order to do the compile. Thanks for the reply.
Thanks. Tried replacing the JRE but got a circular reference. But I think I did finally figure out how to modify our javac ant call to point to a different JVM in order to do the compile. Thanks for the reply.
WARNING: Illegal reflective access by org.eclipse.osgi.storage.FrameworkExtensionInstaller (file:/usr/csm/csmbuild/jazz/buildsystem/buildengine/eclipse/plugins/org.eclipse.osgi_3.10.2.v20150203-1939.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.eclipse.osgi.storage.FrameworkExtensionInstaller
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
I see the same error. The reason is likely that in Java 11 and later more and more limitations are introduced. We have seen this in other areas. There might be a way to disable the checking using special parameters, but I am not deep enough to know details.