This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 201604200001) VM: Java HotSpot(TM) 64-Bit Server VM, 9-ea+114-2016-04-19-165051.javare.4880.nc, Java(TM) SE Runtime Environment, 9-ea+114-2016-04-19-165051.javare.4880.nc OS: Mac OS X User Comments: jiriprox: Starting Netbeans on JDK9jigsaw Stacktrace: java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:366) at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:184) at java.lang.ClassLoader.loadClass(ClassLoader.java:419) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222) at java.lang.ClassLoader.loadClass(ClassLoader.java:419) at org.openide.awt.QuickSearch.setUpSearch(QuickSearch.java:369)
Created attachment 159369 [details] stacktrace
This issues blocks using Netbeans.
*** Bug 262528 has been marked as a duplicate of this bug. ***
*** Bug 262501 has been marked as a duplicate of this bug. ***
Maybe cause by http://openjdk.java.net/jeps/261#Root-modules ?
Adding "-addmods ALL-DEFAULT,java.se.ee" to $jargs in nbexec solves the problem for me. It is sensitive to the order as I need the fix from #258952 as well.
Thanks Ralph. The java.se.ee is not activated automatically now. The java.se is which does not depend in java.ee. The launchers will need to change anyway as the addmods, addExports will no more be java launcher options but JVM options handled by JNI_CreateJavaVM. Currently the addexports are passed as -D to JVM. The lauchers will need to detect JVM they are starting and if JDK 9 add the add... to cmd line.
*** Bug 262636 has been marked as a duplicate of this bug. ***
Already fixed in trunk.