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 256197 - java.lang.IllegalAccessException: class org.netbeans.swing.plaf.Startup cannot access class apple.laf.AquaLookAndFeel (in module java.desktop)
Summary: java.lang.IllegalAccessException: class org.netbeans.swing.plaf.Startup canno...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 8.1
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2015-10-27 09:53 UTC by Tomas Hurka
Modified: 2015-11-30 19:08 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (47.97 KB, text/plain)
2015-10-27 09:53 UTC, Tomas Hurka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Hurka 2015-10-27 09:53:02 UTC
Product Version = NetBeans Dev JDK9 branch (Build 20151027-6a2aec71b0b8)
Operating System = Mac OS X version 10.10.5 running on x86_64
Java; VM; Vendor = 1.9.0-ea
Runtime = Java HotSpot(TM) 64-Bit Server VM 1.9.0-ea-jigsaw-nightly-h3660-20151022-b86

Reproducibility: Happens every time

STEPS:
  * 1) Start ide with clean userdir
  * 2) restart IDE

see messages.log for complete exception
Comment 1 Tomas Hurka 2015-10-27 09:53:08 UTC
Created attachment 156994 [details]
IDE log
Comment 2 Tomas Hurka 2015-10-27 10:17:35 UTC
It looks like it is not possible to switch LAF. 
On Windows MetalLookAndFeel is used instead of Windows LAF.
Comment 3 Martin Entlicher 2015-10-27 14:44:16 UTC
Instead of trying to instantiate the L&F class, we can try to use UIManager.setLookAndFeel(String className).
Comment 4 Martin Entlicher 2015-10-30 09:05:46 UTC
Fixed by changeset:   292966:9886db69db61
http://hg.netbeans.org/jet-main/rev/9886db69db61
Comment 5 Quality Engineering 2015-11-30 19:08:48 UTC
Integrated into 'main-silver', will be available in build *201511301649* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9886db69db61
User: mentlicher@netbeans.org
Log: #256197: Set the look & feel via the string class name, when it's not possible to instantiate the class.