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.
Build: NetBeans IDE 6.0.1 (Build 200801291616) VM: Java HotSpot(TM) Client VM, 1.5.0_13-119 OS: Mac OS X, 10.5.2, i386 User comments: Actually before I was using java 5 to load netbeans, I thought I had 6. I've changed my netbeans.conf JDK to java 6 now, and the problem is solved. for now and forever I hope. I thought I was using Java 6 to load netbeans, but this was not the case. I was using java 5. I've change the netbeans.conf and load netbeans with java 6. Now, it works, and I can create a java class (!!!) sorry for the duplicate STACKTRACE: (first 10 lines) java.lang.reflect.UndeclaredThrowableException at $Proxy19.actionPerformed(.java:0) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:5602) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5367) at java.awt.Container.processEvent(Container.java:2010) this exception report has 60 duplicates
looks like a problem with templates / scripting engine to me, reassigning
The problem occurs when there are both JDK 1.5 and 1.6 installed, NetBeans is configured to run under 1.5 and for some reason it finds scripting API from 1.6 on boot classpath and tries to load classes in 1.5. Not sure what causes the classpath problem, maybe when JDK 1.6 is the default one (?). I was only able to reproduce it with fake build of scripting api jar. The workaround is to configure NetBeans to run under JDK 1.6. I've added message box with the workaround when this happens - core-main #81f8e4e99dc5.
Integrated into 'main-golden', available in build *200808230201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/81f8e4e99dc5 User: Richard Michalsky <rmichalsky@netbeans.org> Log: Message box when error from issue #143653 appears.