NetBeans failed to start, and the "JVM creation failed" prompt is displayed.

Source: Internet
Author: User
Tags netbeans

The error message "JVM creation failed" was reported when NetBeans 7.0 was started normally some days ago ". I did not find a solution after searching on the Internet. It seems that I have to do it myself.
From the prompts, it is because the startup of the Java Virtual Machine fails, and it should be caused by configuration problems. There is an etc folder under the installation directory of NetBeans, and there is a netbeans. conf file below, which is the startup configuration file of NetBeans. The content of the opened file is as follows:

# $ {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-ea-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: Javajdk1.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.

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.