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 254825 - IllegalAccessError: superinterface check failed: class org.netbeans.modules.applemenu.NbApplicationAdapter (in module: Unnamed Module) cannot access class com.apple.eawt.ApplicationListener (in module
Summary: IllegalAccessError: superinterface check failed: class org.netbeans.modules.a...
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: JDK_9, NO81
Depends on:
Blocks:
 
Reported: 2015-08-28 15:18 UTC by Alexandr Scherbatiy
Modified: 2016-07-12 13:21 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219527


Attachments
stacktrace (2.27 KB, text/plain)
2015-08-28 15:18 UTC, Alexandr Scherbatiy
Details
stacktrace (2.20 KB, text/plain)
2015-09-22 15:00 UTC, Stepan Zebra
Details
stacktrace (2.20 KB, text/plain)
2015-10-27 16:03 UTC, abien
Details
stacktrace (2.20 KB, text/plain)
2015-11-15 05:11 UTC, abien
Details
stacktrace (2.24 KB, text/plain)
2016-04-08 20:29 UTC, Exceptions Reporter
Details
stacktrace (2.24 KB, text/plain)
2016-04-12 11:05 UTC, Exceptions Reporter
Details
stacktrace (2.24 KB, text/plain)
2016-04-21 11:53 UTC, Jiri Prox
Details
stacktrace (2.24 KB, text/plain)
2016-07-01 18:42 UTC, jyeary
Details
stacktrace (2.24 KB, text/plain)
2016-07-01 18:45 UTC, jyeary
Details
stacktrace (2.24 KB, text/plain)
2016-07-01 18:48 UTC, jyeary
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2015-08-28 15:18:10 UTC
Build: NetBeans Dev JDK9 branch (Build 201506180405)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.9.0-internal-fastdebug-scherbatiy_2015_08_27_12_05-b00, Java(TM) SE Runtime Environment, 1.9.0-internal-fastdebug-scherbatiy_2015_08_27_12_05-b00
OS: Mac OS X

User Comments:
sunflower: Run the IDE




Stacktrace: 
java.lang.IllegalAccessError: superinterface check failed: class org.netbeans.modules.applemenu.NbApplicationAdapter (in module: Unnamed Module) cannot access class com.apple.eawt.ApplicationListener (in module: java.desktop), com.apple.eawt is not exported to Unnamed Module
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:814)
   at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:311)
   at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Comment 1 Alexandr Scherbatiy 2015-08-28 15:18:12 UTC
Created attachment 155725 [details]
stacktrace
Comment 2 Stepan Zebra 2015-09-22 15:00:22 UTC
Created attachment 156356 [details]
stacktrace

starting nb jdk9 build on Mac
Comment 3 Tomas Hurka 2015-09-24 07:26:12 UTC
To Stepan: You need to add
java.desktop/apple.laf=ALL-UNNAMED
java.desktop/com.apple.eawt=ALL-UNNAMED
to XaddExports on Mac OS X. I already mentioned it my email to QA mailing list.
Comment 4 abien 2015-10-27 16:03:51 UTC
Created attachment 157004 [details]
stacktrace

Just happened during nb start
Comment 5 abien 2015-11-15 05:11:49 UTC
Created attachment 157340 [details]
stacktrace

Happened during and immediately after the installation
Comment 6 Exceptions Reporter 2016-03-31 22:23:07 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=219527
Comment 7 Exceptions Reporter 2016-04-08 20:29:42 UTC
Created attachment 159175 [details]
stacktrace

Started up netbeans
Comment 8 Exceptions Reporter 2016-04-12 11:05:54 UTC
Created attachment 159228 [details]
stacktrace

Just tried starting it on Mac OS X
Comment 9 Jiri Prox 2016-04-21 11:53:59 UTC
Created attachment 159368 [details]
stacktrace

Starting Netbeans on JDK9jigsaw
Comment 10 Martin Balin 2016-04-21 13:14:00 UTC
Since 4/15 NetBeans dev builds should have all -XaddExports for MacOSX in launchers implemented. Did you use https://jdk9.java.net/download/ which should be used or Jigsaw https://jdk9.java.net/jigsaw/ should not be used.
com.apple.eawt package is now exported to ALL-UNNAMED.
Comment 11 jyeary 2016-07-01 18:42:34 UTC
Created attachment 160228 [details]
stacktrace

Installed the latest development version of 8.2 and ran it for the first time.
Comment 12 jyeary 2016-07-01 18:45:36 UTC
Created attachment 160229 [details]
stacktrace

This happens on each startup.
Comment 13 jyeary 2016-07-01 18:48:34 UTC
Created attachment 160230 [details]
stacktrace

Another startup error.