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.

Bug 258945

Summary: ClassNotFoundException: javax.activation.DataContentHandlerFactory
Product: platform Reporter: Jiri Prox <jiriprox>
Component: Window SystemAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: gustav.trede, jis, ralphbenjamin
Priority: P2 Keywords: JDK_9
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 223665
Attachments: stacktrace

Description Jiri Prox 2016-04-21 11:57:16 UTC
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)
Comment 1 Jiri Prox 2016-04-21 11:57:17 UTC
Created attachment 159369 [details]
stacktrace
Comment 2 Jiri Prox 2016-04-21 12:42:51 UTC
This issues blocks using Netbeans.
Comment 3 Ralph Ruijs 2016-06-27 08:46:21 UTC
*** Bug 262528 has been marked as a duplicate of this bug. ***
Comment 4 Ralph Ruijs 2016-06-27 08:46:36 UTC
*** Bug 262501 has been marked as a duplicate of this bug. ***
Comment 5 Ralph Ruijs 2016-06-27 08:48:40 UTC
Maybe cause by http://openjdk.java.net/jeps/261#Root-modules ?
Comment 6 Ralph Ruijs 2016-06-28 07:41:22 UTC
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.
Comment 7 Tomas Zezula 2016-06-29 05:30:49 UTC
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.
Comment 8 Ralph Ruijs 2016-07-04 08:33:56 UTC
*** Bug 262636 has been marked as a duplicate of this bug. ***
Comment 9 Tomas Hurka 2017-02-15 14:29:03 UTC
Already fixed in trunk.