Hello,
 It has been a couple of months since I’ve built and run NetBeans from source. 
Today after building/running I am seeing the error below in the code editor. I 
am running on Java 8 (confirmed by the NetBeans about box). Is this a known 
issue, is a work around?

Thanks,
-Ryan
  
java.lang.ClassNotFoundException: com.sun.tools.javac.code.Scope$WriteableScope
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:197)
Caused: java.lang.ClassNotFoundException: 
com.sun.tools.javac.code.Scope$WriteableScope starting from 
ModuleCL@3231c1ea[org.netbeans.modules.java.source.base] with possible defining 
loaders null and declared parents 
[ModuleCL@2ed68bd5[org.netbeans.libs.javacapi], 
ModuleCL@565ad6b1[org.netbeans.modules.queries], 
org.netbeans.MainImpl$BootClassLoader@1218025c, 
ModuleCL@199db772[org.netbeans.modules.projectuiapi.base], 
ModuleCL@1185ed8e[org.netbeans.lib.nbjavac], 
ModuleCL@466896f0[org.netbeans.modules.java.platform], 
ModuleCL@39999059[org.netbeans.api.scripting], 
ModuleCL@6bccafd2[org.netbeans.modules.parsing.lucene], 
org.netbeans.JarClassLoader@41bab80f, ModuleCL@75f3f638[org.openide.text], 
...20 more]
        at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:199)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Caused: java.lang.NoClassDefFoundError: 
com/sun/tools/javac/code/Scope$WriteableScope
        at 
org.netbeans.modules.editor.java.Utilities.isJavaContext(Utilities.java:253)
        at 
org.netbeans.modules.editor.java.JavaCodeTemplateFilter.<init>(JavaCodeTemplateFilter.java:69)
        at 
org.netbeans.modules.editor.java.JavaCodeTemplateFilter.<init>(JavaCodeTemplateFilter.java:59)
        at 
org.netbeans.modules.editor.java.JavaCodeTemplateFilter$Factory.createFilter(JavaCodeTemplateFilter.java:186)
        at 
org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.getTemplateFilters(CodeTemplateManagerOperation.java:261)
        at 
org.netbeans.lib.editor.codetemplates.SurroundWithFix.getFixes(SurroundWithFix.java:49)
        at 
org.netbeans.lib.editor.codetemplates.AbbrevDetection$2.run(AbbrevDetection.java:426)
        at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
        at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
        at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
        at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:395)
        at 
org.netbeans.lib.editor.codetemplates.AbbrevDetection.showSurroundWithHint(AbbrevDetection.java:424)
        at 
org.netbeans.lib.editor.codetemplates.AbbrevDetection.access$100(AbbrevDetection.java:81)
        at 
org.netbeans.lib.editor.codetemplates.AbbrevDetection$1.actionPerformed(AbbrevDetection.java:174)
        at javax.swing.Timer.fireActionPerformed(Timer.java:313)
        at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at 
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
        at 
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
        at 
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[catch] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to