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.
Sources cannot be compiled with a platform other than the default, the following error occurs (full output): pre-init: init-private: init-user: init-project: init-macrodef-property: do-init: C:\projects\java\SourceAnnotationReplacer\nbproject\build-impl.xml:42: Following error occured while executing this line C:\projects\java\SourceAnnotationReplacer\nbproject\build-impl.xml:95: Syntax error in property: ${platforms.Java_HotSpot_TM__Client_VM_1.4.2_04-b05.home BUILD FAILED (total time: 2 seconds)
JDK 1.5 specific problem. Perhaps in Ant? I need to investigate. For now run IDE in <1.5 JDK.
No, it is not dependent on 1.5. I've got the same problem, when starting with 1.4.2 and 1.5.0b2 - assuming that parameters netbeans.conf are correctly evaluated (the default platform still refers to JDK 1.5, I've felt this would be dependent on the JDK the IDE is started with).
It is JDK related. If you start IDE in JDK 1.5 then any project for which you set (change) some explicit platform will be broken. Do the same in IDE started with JDK1.4 and it will be corrected. This is most probably the JDK bug linked from issue 43624. I'm going to workaround it somohow. You can easily fixed the script by searching for text "${@{value}" and replacing it with "${@{value}}" - the last parenthesis is missing.
Workarounded in: src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl new revision: 1.14; previous revision: 1.13
The JDK bug was fixed in 1.5.0, so I will remove the workaround.
Verified in 4.2 (200507061800)