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.
|Summary:||IDE ignores project main class setting|
|Product:||java||Reporter:||Jiri Skrivanek <jskrivanek>|
|Component:||Unsupported||Assignee:||Jiri Rechtacek <jrechtacek>|
|Issue Type:||DEFECT||Exception Reporter:|
|Bug Depends on:|
Description Jiri Skrivanek 2004-06-17 14:51:49 UTC
When you create a new java project with main class, the main class is set as project main class. But when you try to run the project, it is open window to select main class and additionally this window is empty in spite main class is present. Steps to repeat: - create java application project with main class (default settings) - try to run this project (F6) => dialog to select main class is arisen and the dialog is empty. But if you look at properties, main class is set (Run|Running Project) Tested in build 20040617-1143, JDK1.4.2_04, WindowsXP.
Comment 1 Jesse Glick 2004-06-17 16:24:24 UTC
Can't reproduce in 040616 under JDK 1.5. Recent regression (past 24 hours)? java/j2seproject CVS shows no likely problem commits recently. More likely a regression somewhere in javamodel/javacore, IMHO; we have seen a similar problem before that had to due to with a parsing bug. Probable workaround: select build.xml in Files, right-click, Run Target -> run. Recent suspicious commits in java module (outside j2seproject): too many to list. However in particular I see Date: 2004/06/17 12:08:46 Author: jbecicka Log: #44925: Cannot run form files Members: src/org/netbeans/modules/java/bridge/CallableImpl.java:1.2->1.3 src/org/netbeans/modules/java/bridge/ElementImpl.java:1.3->1.4 Date: 2004/06/17 12:21:24 Author: jbecicka Log: #45008: Avoid use of source hierarchy in JavaNode Members: src/org/netbeans/modules/java/JavaNode.java:1.102->1.103 Date: 2004/06/17 14:49:51 Author: jbecicka Log: #43773: Cannot run project Members: src/org/netbeans/modules/java/JavaNode.java:1.103->1.104 srcmodel/src/org/openide/src/ClassElement.java:1.6->1.7
Comment 2 Jiri Skrivanek 2004-06-17 16:42:10 UTC
In my build 20040617-1103 it worked, in build 20040617-1236 it failed (Prague time - CEST).
Comment 3 Jesse Glick 2004-06-17 16:54:00 UTC
In that case the only plausible commit I can find in java module (assuming some half hour delay when trying to update sources from Europe?) is PatchSet 7268 Date: 2004/06/17 08:25:34 Author: jbecicka Log: #44570: "Where Used" on JDK classes/methods does not seem to work at all Members: javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ClassDefinitionImpl.java:1.5->1.6 javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/MethodImpl.java:1.7->1.8 javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/TypeClassImpl.java:1.2->1.3 javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/UsageFinder.java:1.8->1.9
Comment 4 Jiri Skrivanek 2004-06-17 17:13:09 UTC
Don't ask me why but it works in my current build 20040617-1545. We can probably close this issue.
Comment 5 Jiri Rechtacek 2004-06-17 19:49:33 UTC
[NB dev 040617] Seems as fixed, above all it works for me for now. Quoted from issue 43773: Checking in src/org/netbeans/modules/java/JavaNode.java; /cvs/java/src/org/netbeans/modules/java/JavaNode.java,v <-- JavaNode.java new revision: 1.104; previous revision: 1.103 done Processing log script arguments... More commits to come... Checking in srcmodel/src/org/openide/src/ClassElement.java; /cvs/java/srcmodel/src/org/openide/src/ClassElement.java,v <-- ClassElement.java new revision: 1.7; previous revision: 1.6 done
Comment 6 Jiri Skrivanek 2004-06-18 06:22:04 UTC