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: | class does not have a main method | ||
---|---|---|---|
Product: | java | Reporter: | tboerkel <tboerkel> |
Component: | Unsupported | Assignee: | Jan Becicka <jbecicka> |
Status: | RESOLVED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Windows ME/2000 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Example source. |
Description
tboerkel
2004-10-13 07:33:47 UTC
Created attachment 18235 [details]
Example source.
Attached source example is not valid JDK 1.5 source. It contains following line: int count, i, enum; enum is a keyword since 1.5. This is the reason why your project runs with 1.4.2_05, but not with JDK 1.5.0 You misunderstood me. NB runs under JDK 1.5.0, but this project ALWAYS runs with platform JDK 1.4.2_05. If I would try it with JDK 1.5.0, it wouldn't even compile, that's right. But I did not try this. Maybe, NB (parser) sometimes "forgets" about the chosen platform for this project and uses the Default platform instead. So, the report is not invalid. But I should say, that the problem did not appear with NB 20041012, yet. Neither I nor reporter is able to reproduce it. Closing as works for me. Thomas, if this bug happens again, please reopen this issue. Thanks. |