1

I'm preparing a VM with Windows XP, Java 4 and Java 8 for university projects purposes.

Before installing Java4 I first installed 7 and 8 for gradle, intellij and some other projects.

After all the installation stuff, i set my JAVA_HOME variable to

C:\Developer\SDK\Java\j2sdk1.4.2_19

and added JAVA_HOME\bin to the PATH variable.

It should all work fine, but when I opened CMD and issued

java -version

java 8 version is printed. On the other hand, javac -version prints nothing but the help dialog.

Am I doing anything wrong?

Images

enter image description here

enter image description here

4

1 に答える 1

2

@sevが言ったように、パス変数に最初に配置すると問題が解決しました

于 2015-04-13T18:40:11.433 に答える