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.
I have a class with several package level classes. Execute class Test => java.lang.NullPointerException I will attach: - ide.log - source file Q.java
Created attachment 10095 [details] idelog
Created attachment 10096 [details] Q.java
I've downloaded and compiled the Q.java and executed the resulting Test class but I've got no NPE. Could you please attach the NPE stacktrace to the issue? Thanks.
Stack trace below: java.lang.NullPointerException at org.openide.loaders.ExecutionSupport.choose(ExecutionSupport.java:355) at org.openide.loaders.ExecutionSupport.startFailed(ExecutionSupport.java:108) [catch] at org.openide.loaders.ExecutionSupport$1.run(ExecutionSupport.java:92) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178) at java.awt.EventQueue.dispatchEvent(EventQueue.java:448) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
This problem happens whenever the source file name is not the same as the name of the executable. For example a source file with several package level classes, one of them has the public main method.
Thank you for the NPE. Reassigning to core.
*** This issue has been marked as a duplicate of 33078 ***
verified, closed - it's duplicate.