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 151152 - Compiler option with -J-Xmx doesn't work
Summary: Compiler option with -J-Xmx doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 14:44 UTC by _ viendu
Modified: 2008-10-23 15:06 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 _ viendu 2008-10-23 14:44:00 UTC
This is OpenSuse 11, Netbeans 6.5 RC1.  JDK 1.6.0_10.

When doing the compilation, I got this:

javac: invalid flag: -J-Xmx1024m
Usage: javac <options> <source files>
use -help for a list of possible options

The commandline compilation with -J-Xmx1024m works fine.
Comment 1 _ viendu 2008-10-23 14:44:36 UTC
Due to RC1, change to P1
Comment 2 _ viendu 2008-10-23 14:48:42 UTC
There is a discussion on this:

http://markmail.org/message/ue2kpktjdmqojzsv
Comment 3 Jan Lahoda 2008-10-23 15:06:04 UTC
I presume you use J2SE Project. When using the default build script and the default platform (the one that the IDE is
running on), the compiler runs in the same VM as does the IDE, and the VM arguments are not supported in this case. If
you need to use VM arguments for the compiler, you need to use non-default platform. See e.g.:
http://www.netbeans.org/issues/show_bug.cgi?id=68724
http://www.netbeans.org/issues/show_bug.cgi?id=96087