简体   繁体   English

在Java中设置类路径

[英]setting class path in Java

I used to run eclipse on my laptop. 我曾经在笔记本电脑上运行Eclipse。 I have installed and used Secunia PSI application in order to update the apps, but once I done that I cannot run Eclipse. 我已经安装并使用了Secunia PSI应用程序以更新应用程序,但是一旦完成,我将无法运行Eclipse。

This is what I have: 这就是我所拥有的: 在此处输入图片说明

I set the PATH to the directory which contains javaw.exe app. 我将PATH设置为包含javaw.exe应用程序的目录。 The path at the PATH variable is the same as of CLASSPATH variable. PATH变量处的路径与CLASSPATH变量相同。 So, what are your resolutions? 那么,您的解决方案是什么? Done, it works now. 完成,现在可以使用了。 I just simply needed to add '.;' 我只需要添加'。;'。 at the end of the path link at the PATH. 在PATH路径链接的末尾。 Cheers 干杯

As the error message clearly states, Eclipse cannot find the entire JVM. 正如错误消息清楚指出的那样,Eclipse无法找到整个JVM。

Add the directory that contains javaw.exe to your PATH. 将包含javaw.exe的目录添加到PATH。

Better to add JAVA_HOME as a new system variable in the same screen where you see the class path by clicking New and providing the folder location for JAVA root installation folder eg below: 最好在单击“ New并提供JAVA根安装文件夹的文件夹位置的情况下,在显示类路径的同一屏幕上将JAVA_HOME添加为新的系统变量,例如:

    Variable Name= JAVA_HOME
    Variable Value= C:\Program Files\Java\jdk1.7.0_09

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM