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 271499 - ClassNotFoundException: javax.activation.DataContentHandlerFactory
Summary: ClassNotFoundException: javax.activation.DataContentHandlerFactory
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-18 13:56 UTC by tbrunhoff
Modified: 2017-09-27 05:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230332


Attachments
stacktrace (3.82 KB, text/plain)
2017-09-18 13:56 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2017-09-18 13:56:47 UTC
Build: NetBeans IDE Dev (Build 201709180002)
VM: Java HotSpot(TM) 64-Bit Server VM, 9+181, Java(TM) SE Runtime Environment, 9+181
OS: Linux

User Comments:
tbrunhoff: starting ide.  This is with jdk 9, as below.

  Product Version         = NetBeans IDE Dev (Build 201709180002) (#65a42d41431f)
  Operating System        = Linux version 4.12.9-300.fc26.x86_64 running on amd64
  Java; VM; Vendor        = 9; Java HotSpot(TM) 64-Bit Server VM 9+181; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 9+181
  Java Home               = /usr/java/jdk-9




Stacktrace: 
java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory
   at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:582)
   at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:185)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:222)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:496)
   at org.openide.awt.QuickSearch.setUpSearch(QuickSearch.java:369)
Comment 1 tbrunhoff 2017-09-18 13:56:50 UTC
Created attachment 165144 [details]
stacktrace
Comment 2 fcorneli 2017-09-27 05:36:16 UTC
NetBeans 8.2, Linux, JDK9. Close "Files" tab, try to reopen via Window -> Files.
This gives me:
java.lang.ClassNotFoundException: javax.activation.DataContentHandlerFactory
instead of opening the tabs.
Adding:
-J--add-modules=java.se.ee
to netbeans_default_options within etc/netbeans.conf fixes the issue for the moment.