开发者

Java on Windows 7 [closed]

Closed. This question is off-topic. It is not currently accepting answers. 开发者_开发问答

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 11 years ago.

Improve this question

I've installed java(jre) on window 7. But I am not able to run java from command prompt .

I've set my JRE_HOME to "c:\Program Files (x86)\Java\jre6 " in Environment variables.But still it's not working.kindly help..


Make sure, that the bin folder of your JRE is added to the PATH variable. JAVA_HOME is irrelevant here.

JAVA_HOME is a convention - some tools use that environment variable to pick the location of the right java version. They use it to construct a path like this:

%JAVA_HOME%/bin/java -version

(that should work, by the way)


Add the location of the bin directory to the front of your PATH environment variable.

The simplest way to get a default Java is to go to http://java.com and let it install what it feels like. This will be available in your PATH.


Use this command at cmd (assuming java is installed at "C:\Program Files\Java" and version is 1.6.0):

set path=;"C:\Program Files\Java\jdk1.6.0\bin\";
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜