[英]JDK-1.8 missing 'server' JVM at JAVA_HOME
I have a Linux Centos 7 server with Java 1.7.我有一个 Linux Centos 7 服务器和 Java 1.7。
Static hostname: primary.abc.co
Icon name: computer-vm
Chassis: vm
Machine ID: 3aec2b029e5b43d392206467af5984ac
Boot ID: 9aaa701be84147669f1dcce3243168b4
Virtualization: vmware
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-1062.4.3.el7.x86_64
Architecture: x86-64
It has many apps, which I want to upgrade one of them to use Java1.8.它有很多应用程序,我想升级其中一个以使用 Java1.8。 So I download JDK-1.8 from here (jdk-8u261-linux-i586.tar.gz).
所以我从这里(jdk-8u261-linux-i586.tar.gz)下载了JDK-1.8。
I create a script (build.sh) to do the maven build with Java1.8 because the JAVA_HOME is Java1.7 for all the other apps.我创建了一个脚本 (build.sh) 来使用 Java1.8 进行 maven 构建,因为 JAVA_HOME 对于所有其他应用程序都是 Java1.7。
build-osgi.sh构建-osgi.sh
export JAVA_HOME=/usr/java/jdk1.8.0_261/
echo $JAVA_HOME
mvn -V clean install -DskipTests
Error:错误:
/usr/java/jdk1.8.0_261/
/usr/java/jdk1.8.0_261/
Error: missing 'server' JVM at `/usr/java/jdk1.8.0_261/jre/lib/i386/server/libjvm.so'.
错误:在“/usr/java/jdk1.8.0_261/jre/lib/i386/server/libjvm.so”中缺少“服务器”JVM。 Please install or use the JRE or JDK that contains these missing components.
请安装或使用包含这些缺失组件的 JRE 或 JDK。
So when the -V
(java version) gets executed, it gives the error, suggesting that the JDK has missing components.因此,当
-V
(java 版本)被执行时,它会给出错误,表明 JDK 缺少组件。
Question问题
Does anyone know where I can get a JDK1.8 that will work?有谁知道我在哪里可以获得可以工作的JDK1.8? (I thought from the Oracle site would work).
(我认为从 Oracle 站点可以工作)。 Or is there something else I should do?
或者还有什么我应该做的吗?
I downloaded a different version of JDK 8 and it works.我下载了不同版本的 JDK 8,它可以工作。 (x64 instead of x86)
(x64 而不是 x86)
https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
jdk-8u261-linux-x64.tar.gz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.