Netbeans, eclipse startup failure, prompt "JVM creation failed" SOLUTION

Source: Internet
Author: User
Tags netbeans

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.