[英]Getting a version error in java
Usually the version error in java occurs due to a package being compiled in a higher version and being run on a lower version of java ( this is my understanding, please correct if I am wrong ) but I have the same version of java installed on 2 nodes but still getting a version error when the package is compiled on one of the nodes and run on another node. 通常,java中的版本错误是由于软件包在较高版本中编译并在较低版本的java上运行(这是我的理解,如果我错了,请更正),但是我在2上安装了相同版本的java节点,但是当在一个节点上编译该程序包并在另一个节点上运行时,仍然出现版本错误。 The jdk used for installation is "jdk-7u17-linux-i586.tar.gz". 用于安装的jdk是“ jdk-7u17-linux-i586.tar.gz”。 Both the machines are running 32-bit Linux(Ubuntu) OS. 两台机器都运行32位Linux(Ubuntu)操作系统。
Any idea why this could be happening ? 知道为什么会这样吗?
You can check for multiple installation of JRE/JDK. 您可以检查JRE / JDK的多个安装。
update-java-alternatives -l 更新Java替代品-l
java -showversion java -showversion
java -version Java版本
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.