3 回答

TA贡献1820条经验 获得超9个赞
jvm参数中的java option需要修改后重启生效。
jvm参数可选配置如下:
options include:
-client to select the "client" VM
-server to select the "server" VM
-hotspot is a synonym for the "client" VM [deprecated]
The default VM is client.
-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A ; separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D<name>=<value>
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:<value>
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>]
enable assertions
-da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
-agentlib:<libname>[=<options>]
load native agent library <libname>, e.g. -agentlib:hprof
see also, -agentlib:jdwp=help and -agentlib:hprof=help
-agentpath:<pathname>[=<options>]
load native agent library by full pathname
-javaagent:<jarpath>[=<options>]
load Java programming language agent, see java.lang.instrument

TA贡献1784条经验 获得超9个赞
-vm C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll 这个配置的文件就在你的eclipse目录下面。里面有个-vm的配置项。C:/Program Files/Java/jdk1.6.0_23/jre/bin/client/jvm.dll 这个是我的机器JAVA安装的路径。你可以看下你的配置里面-vm下面一行配置的什么。检查下配置是否正确。 如果没有-vm这个配置项的话,可以自己加上,把路径改成你自己的JAVA的路径
添加回答
举报