For eclipse methods, see "Eclipse 3.6 Jee failed to create the Java Virtual Machine"
Netbeans Method
My environment is WINXP + netbeans7.0.
The error message "JVM creation failed" was reported when netbeans 7.0 was started normally some days ago ".
# $ {Home} will be replaced by JVM user. Home System Property
Netbeans_default_userdir = "$ {home}/. netbeans/7.0 Beta"
# Options used by netbeans launcher by default, can be overridden by explicit
# Command line switches:
Netbeans_default_options = "-J-client-J-Xss2m-J-Xms32m-J-XX: permsize = 32 m-J-XX: maxpermsize = 384 m-J-Dnetbeans.logger.console = true
-J-Expert-J-Dapple.laf.useScreenMenuBar = true
-J-Dapple.awt.graphics.UseQuartz = true-J-Dsun.java2d.noddraw = true"
# Note that a default-xmx is selected for you automatically.
# You can find this value in var/log/messages. log file in your userdir.
# The automatically selected value can be overridden by specifying-J-xmx here
# Or on the command line.
# If you specify the heap size (-xmx) explicitely, you may also want to enable
# Concurrent Mark & sweep garbage collector. In such case Add the following
# Options to the netbeans_default_options:
#-J-XX: + useconcmarksweepgc-J-XX: + cmsclassunloadingenabled-J-XX: + cmspermgensweepingenabled
# (See http://wiki.netbeans.org/wiki/view/FaqGCPauses)
# Default location of JDK, can be overridden by using -- jdkhome <dir>:
Netbeans_jdkhome = "D: \ Java \ jdk1.6.0 _ 16"
# Additional module clusters, using $ {path. Separator} (';' on Windows or ':' on UNIX ):
# Netbeans_extraclusters = "/absolute/path/to/cluster1:/absolute/path/to/cluster2"
# If you have some problems with detect of proxy settings, you may want to enable
# Detect the proxy settings provided by jdk5 or higher.
# In such case add -j-djava.net. usesystemproxies = true to the netbeans_default_options.
The Rows starting with "#" in the configuration file are comments, so focus on the rows not starting.
The first line "netbeans_default_userdir" defines the location where you want to save netbeans settings. (This should not be affected .)
The second line is "netbeans_default_options". The following parameters include some settings during startup of the Java Virtual Machine and some settings during netbeans startup. (The problem should be solved here .)
The third line "netbeans_jdkhome" defines the position of the JDK used by netbeans. (It should not be affected here .)
In the parameter "netbeans_default_options", there is a "-J-maxpermsize = 384m", which defines the maximum value of the stack that the Java Virtual Machine can use as 384 Mb, after several modification attempts, you can change the value to MB.
In addition, you can add a "#" in front of this line to ignore this line.