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.

Bug 44171 - Error when compiling with non-default platform
Summary: Error when compiling with non-default platform
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-06-02 11:12 UTC by Peter Nabbefeld
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Nabbefeld 2004-06-02 11:14:19 UTC
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)
Comment 1 David Konecny 2004-06-02 12:03:57 UTC
JDK 1.5 specific problem. Perhaps in Ant? I need to investigate. For
now run IDE in <1.5 JDK.
Comment 2 Peter Nabbefeld 2004-06-02 13:03:31 UTC
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).
Comment 3 David Konecny 2004-06-02 13:33:34 UTC
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.
Comment 4 David Konecny 2004-06-02 13:44:22 UTC
Workarounded in:

src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl
new revision: 1.14; previous revision: 1.13
Comment 5 Jesse Glick 2004-10-12 17:57:01 UTC
The JDK bug was fixed in 1.5.0, so I will remove the workaround.
Comment 6 Jiri Prox 2005-07-07 15:02:18 UTC
Verified in 4.2 (200507061800)