gpt4 book ai didi

java - Windows 7 64位,配置2个版本的Java

转载 作者:太空宇宙 更新时间:2023-11-04 07:19:33 25 4
gpt4 key购买 nike

Windows 7 64 位。我有一个基于网络的应用程序,需要使用最新版本的java(1.7.0.45),并且我有另一个软件安装需要java版本(1.5.0.15和1.4.2)。我只是不确定如何设置路径/变量才能使其正常工作..任何帮助将不胜感激。

我看过几篇关于与此非常相似的情况的帖子和答案,但我只是不确定如何完成这项工作。

最佳答案

正如@Moshe提到的here .

It is absolutely possible to install side-by-side several JRE/JDK versions. Moreover, you don't have to do anything special for that to happen, as Sun is creating a different folder for each (under Program Files).

There is no control panel to check which JRE works for each application. Basically, the JRE that will work would be the first in your PATH environment variable. You can change that, or the JAVA_HOME variable, or create specific cmd/bat files to launch the applications you desire, each with a different JRE in path. Just like below,

set JAVA_HOME=C:\...\j2dskXXX to change the JAVA_HOME environment.

关于java - Windows 7 64位,配置2个版本的Java,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19508438/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com