Does installing JDK 1.7 remove JDK 1.5? Because when I tried to restart Tomcat which was using Java 1.5 I have got the below error:
安装JDK 1.7是否删除了JDK 1.5?因为当我尝试重启使用Java 1.5的Tomcat时,我遇到了以下错误:
/opt/tomcat/bin/catalina.sh: line 332: /usr/java/jdk1.5.0_22/bin/java: No such file or directory
Verified that this directory is gone. Tomcat services running fine until shutting down and attempting to restart last night. When trying to install Java 1.5 J have got the below error message:
已验证此目录已消失。 Tomcat服务正常运行,直到关闭并尝试重新启动昨晚。尝试安装Java 1.5 J时出现以下错误消息:
Preparing... ########################################### [100%]
package jdk-2000:1.7.0_17-fcs.x86_64 (which is newer than jdk -2000:1.5.0_22-fcs.x86_64) is already installed"
-
Will installing JDK 1.7 remove JDK 1.5?
安装JDK 1.7会删除JDK 1.5吗?
-
How do I install JDK 1.5?
如何安装JDK 1.5?
2 个解决方案
#1
1
It depends on how you installed (which package manager or if you used the self-extracting sh or unzip). Normally, no, they don't install over, they install alongside and simply replace symbolic links.
这取决于您的安装方式(哪个包管理器或您使用自解压sh或解压缩)。通常,不,它们不安装,它们并排安装,只需替换符号链接。
If you follow your symbolic links for java (which java | ls -l)... you'll find the install dir of the jdk1.7, and probably find 1.5 nearby.
如果你按照java的符号链接(java | ls -l)...你会找到jdk1.7的安装目录,并且可能在附近找到1.5。
#2
0
You can download the JDK from the Oracle Java archive page and you can extract it to the required location to fix your problem.
您可以从Oracle Java归档页面下载JDK,然后将其解压缩到所需位置以解决问题。
#1
1
It depends on how you installed (which package manager or if you used the self-extracting sh or unzip). Normally, no, they don't install over, they install alongside and simply replace symbolic links.
这取决于您的安装方式(哪个包管理器或您使用自解压sh或解压缩)。通常,不,它们不安装,它们并排安装,只需替换符号链接。
If you follow your symbolic links for java (which java | ls -l)... you'll find the install dir of the jdk1.7, and probably find 1.5 nearby.
如果你按照java的符号链接(java | ls -l)...你会找到jdk1.7的安装目录,并且可能在附近找到1.5。
#2
0
You can download the JDK from the Oracle Java archive page and you can extract it to the required location to fix your problem.
您可以从Oracle Java归档页面下载JDK,然后将其解压缩到所需位置以解决问题。