Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 258808

Summary: Starting Dev on JDK9 crashes with SecurityException:setContextClassLoader - InnocuousThread
Product: platform Reporter: Martin Balin <mbalin>
Component: Module SystemAssignee: Tomas Hurka <thurka>
Status: RESOLVED FIXED QA Contact: issues <>
Priority: P2 Keywords: JDK_9, VISUALVM
Version: 8.2   
Target Milestone: 8.2   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Report:

Description Martin Balin 2016-04-13 12:33:13 UTC
Attempt to launch Dev on JDK9 EA build 113 throws following exception:

java.lang.SecurityException: setContextClassLoader
	at jdk.internal.misc.InnocuousThread.setContextClassLoader(java.base@9-ea/
	at org.netbeans.ModuleManager.updateContextClassLoaders(
	at org.netbeans.ModuleManager.<init>(
	at org.netbeans.core.startup.ModuleSystem.<init>(
	at org.netbeans.core.startup.Main.getModuleSystem(
	at org.netbeans.core.startup.Main.getModuleSystem(
	at org.netbeans.core.startup.Main.start(

This should be fixed in Jigsaw/JDK9EA since b110 but it is not...
Comment 1 Tomas Hurka 2016-04-21 10:22:24 UTC
JDK bug workarounded by the following changeset:

changeset:   296166:60ccf11ee887
user:        Tomas Zezula <>
date:        Thu Apr 14 15:48:23 2016 +0200
summary:     java.lang.SecurityException: setContextClassLoader
Comment 2 siva.kalagarla 2016-10-02 02:51:01 UTC

I just downloaded 8.2RC and I see this exception happening in Mac.  May I know if there is a work around for this issue?

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo