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 31684

Summary: Cannot execute Main class
Product: java Reporter: Jan Becicka <jbecicka>
Component: UnsupportedAssignee: Svata Dedic <sdedic>
Status: VERIFIED FIXED    
Severity: blocker CC: mmirilovic
Priority: P2    
Version: -S1S-   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Becicka 2003-03-05 11:03:07 UTC
java.lang.NoClassDefFoundError: /Main
Exception in thread "main"
Comment 1 Marian Mirilovic 2003-03-05 11:15:05 UTC
Reproducible on [s1s_5](030304_1).

Comment 2 Svata Dedic 2003-03-05 11:24:13 UTC
It's in JavaProcessExecutor (=> reassigning to Java), an oversight
introduced when removing ExecInfo dependency. The bug only occurs when
the class being executed resides in the default package => P2
Comment 3 Svata Dedic 2003-03-05 13:08:20 UTC
Fixed in both trunk & nb-3.5 (the fix is trivial): 
/cvs/java/src/org/netbeans/modules/java/JavaProcessExecutor.java,v  
<--  JavaProcessExecutor.java 
new revision: 1.11; previous revision: 1.9 
 
/cvs/java/src/org/netbeans/modules/java/JavaProcessExecutor.java,v  
<--  JavaProcessExecutor.java 
new revision: 1.8.2.2; previous revision: 1.8.2.1 
 
Comment 4 Jan Becicka 2003-03-10 14:52:58 UTC
VERIFIED