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 96087 - Javac can't recognize passed in compile arguments with -J switch
Summary: Javac can't recognize passed in compile arguments with -J switch
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-21 01:06 UTC by waynezhang
Modified: 2007-03-20 17: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 waynezhang 2007-02-21 01:06:05 UTC
When build project in Netbeans 6.0 (5.5.1 also), javac can't recognize parsed in
argument with -J switch in JDK 1.6.0. It works in JDK 1.5.0.

Argument set at:

Project properties > Build > Compiling > Additional Compile Options

When set -J-Xmx500m for a large project, it reports the following error:

javac: invalid flag: -J-Xmx500m
Usage: javac <options> <source files>
use -help for a list of possible options
Comment 1 Peter Pis 2007-02-27 09:08:38 UTC
Reassigning to "java"...
Comment 2 Jan Lahoda 2007-03-20 14:21:23 UTC
Maybe difference between default and non-default platform?
Comment 3 Tomas Zezula 2007-03-20 17:14:52 UTC
Change the default platform to non default one. The default platform does not
fork new process (<javac fork="false" ...). To resolve the problem while using
the JDK 1.6.0 add new platform in the Java Platform Manager with the same
install folder as the default platform and use the non default one.