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

Summary: Javac can't recognize passed in compile arguments with -J switch
Product: java Reporter: waynezhang <waynezhang>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

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.