Hi,

Current NetBeans does not start on JDK 11:
$ java --version
openjdk 11-ea 2018-09-18
OpenJDK Runtime Environment 18.9 (build 11-ea+4)
OpenJDK 64-Bit Server VM 18.9 (build 11-ea+4, mixed mode)

$ ./netbeans
Error occurred during initialization of boot layer
java.lang.module.FindException: Module java.xml.bind not found

The reason is that some modules have been removed from the JDK:
http://openjdk.java.net/jeps/320

And etc/netbeans.conf is requesting some of them using --add-modules:
-J--add-modules=java.activation,jdk.jshell,java.xml.bind

I hope the need for java.activation was fixed by:
https://github.com/apache/incubator-netbeans/commit/738fa7899e3139bf4c7a4afbb719578deb5aa0f9

So we possibly could just remove java.activation from the list.

I am not sure yet if jdk.jshell is needed or not, but that module is in JDK
11, so should not be problematic at this time.

The module that remains is java.xml.bind, which is problematic. It was
added to fix:
https://netbeans.org/bugzilla/show_bug.cgi?id=270672

I wonder if there's a way to fix that problem without using the
java.xml.bind JDK module. Matthias, any idea?

Thanks,
     Jan

Reply via email to