Windows 7上的Java 7 64位:如何切换java版本 [英] Java 7 64 bit on windows 7: how to switch java versions

查看:380
本文介绍了Windows 7上的Java 7 64位:如何切换java版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从安装的64位java 7切换到我的Windows 7 64位操作系统上安装的java 6,但通常的步骤不起作用。
我试图更改JAVA_HOME环境变量但是当我输入java -version时,系统回复Java 7 ...
如何从不同的java版本切换?

I need to switch from the installed java 7 at 64bit to the installed java 6 on my Windows 7 64bit OS but the usual procedure doesn't works. I tried to change the JAVA_HOME environment variable but when I type java -version, the system replies Java 7... How can I switch from different java versions?

谢谢。

推荐答案

您还需要切换路径环境变量,指向JRE之前bin目录。另外,我认为现代版本的java在Windows的system32目录中放置了java.exe的副本,你需要将它们删除(或者如果你想将它们作为备份重命名它们)。

You need to switch the path environment variable too, to point before to the JRE bin directory. Also, I think modern versions of java place a copy of "java.exe" in the system32 directory of Windows, you'll need to remove them (or rename them, if you want to keep them as backups).

这篇关于Windows 7上的Java 7 64位:如何切换java版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆