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.
Create new NB project (General->JavaApplication) set Java Platform to JavaVN 1.3.1_xx and try build such a project. Build fails -> .. JavaApplication2/build/classes javac: invalid flag: -source Usage: javac <options> <source files> Prolly apple supported java 1.3 and lesser doesn't have switch -source.
Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java,v <-- PlatformUiSupport.java new revision: 1.8; previous revision: 1.7 done
Checking in PlatformUiSupport.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java,v <-- PlatformUiSupport.java new revision: 1.9; previous revision: 1.8 done
Both commits were applied to Web and EJB projects.
*** Issue 56574 has been marked as a duplicate of this issue. ***
*** Issue 57429 has been marked as a duplicate of this issue. ***
Verified with build 200504101930. I've found obscure scenario how to simulate this problem once again: import eclipse project with JDK/JRE 1.3- to netbeans, after import try build this project and message javac: invalid flag: -source Usage: javac <options> <source files> still appears. Changing java platform to 1.4 and back to 1.3 solves this problem. I file issue for project importer.
The importer generated a project.xml with <explicit-platform source-supported="true"> for JDK 1.3, it is bug in importer.