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.
Created attachment 92717 [details] Test NetBeans project that exhibits the bug. Creating an Eclipse Java project that contains a main method, then attempting to import this project into NetBeans, build it, and run the generated JAR causes the built JAR file to fail to run, because the Main-Class attribute is never put into the generated manifest file. The workaround is to delete the imported NetBeans project and recreate it entirely within NetBeans. Then, it works.
Created attachment 92718 [details] Eclipse project containing source code. Forgot that NetBeans links to the Eclipse source folder, so this needs to be attached too to reproduce the bug properly.
Fixed.
Thanks for fix; generally Eclipse project importer bugs are not being touched. BTW when committing: 1. Avoid whitespace-only changes or other reformatting unrelated to the fix. 2. Include a real description in the commit log, not just bug number. 3. Include Hg changeset ID in BZ. 4. Set target milestone.