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

查看:28
本文介绍了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天全站免登陆