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 103569 - project won't compile due to bad compiler argument
Summary: project won't compile due to bad compiler argument
Status: RESOLVED DUPLICATE of bug 103481
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-09 15:13 UTC by athompson
Modified: 2007-05-11 16:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
build-impl.xml (34.96 KB, text/xml)
2007-05-09 15:14 UTC, athompson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2007-05-09 15:13:26 UTC
NetBeans IDE Dev (Build 200705081800)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

after upgrading to recent daily, compiling a java project with existing sources
fails with this error:


javac: invalid flag: -Djava.endorsed.dirs=C:\Program Files\NetBeans 6.0
Dev\java1\modules\ext\jaxws21\api
Usage: javac <options> <source files>
...

the offending line in the 'build-impl.xml' file (attached) is this:

<compilerarg line="-Djava.endorsed.dirs='@{jaxwsendorsed}'"/>

the 'java' command has a '-D' option, but 'javac' does not.
Comment 1 athompson 2007-05-09 15:14:47 UTC
Created attachment 42246 [details]
build-impl.xml
Comment 2 athompson 2007-05-09 15:23:04 UTC
BTW, this is not a web or J2EE project; it's just a plain old java project.  i
tried creating the project from scratch with the same result.
Comment 3 Jiri Prox 2007-05-11 16:13:30 UTC
it looks like duplicate of issue 103481

*** This issue has been marked as a duplicate of 103481 ***
Comment 4 Lukas Jungmann 2007-05-11 16:44:13 UTC
javac does not have general '-D...' option, but it has
'-Djava.endorsed.dirs=<dirs>' option which is being used here (see javac -X)

Can you run build on your affected project with ant verbosity level set to
Verbose (in Tools->Options->Misc.->Ant) and attach an output of the build to
this issue, please?
Comment 5 athompson 2007-05-11 16:51:00 UTC
there is no such option for jdk 1.4.2_13
Comment 6 Lukas Jungmann 2007-05-11 16:58:55 UTC
You didn't say that you use jdk1.4.2 for project...

Now I see this is a dup