You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rror occurred during initialization of VM Unable to load native library: Error loading shared library libjvm.so: No such file or directory (needed by /usr/local/java/jdk1.8.0_321/jre/lib/amd64/libjava.so)
#16
Open
hepinggeIT opened this issue
Feb 1, 2024
· 0 comments
After Dockerfile creates the Java basic environment for microservices, the container executes a Java command error: error occurred during initialization of VM
Unable to load native library: Error loading shared library libjvm. so: No such file or directory (needed by/usr/local/Java/jdk1.8.0_221/jre/lib/amd64/libjava. so)
But the corresponding file can be found in the directory corresponding to the container.
===Below is Dockfile content===
FROM jeanblanchard/alpine-glibc
ADD jdk-8u321-linux-x64.tar.gz /usr/local/java
ENV JAVA_HOME /usr/local/java/jdk1.8.0_321
ENV CLASSPATH .:${JAVA_HOME}/lib
ENV PATH ${PATH}:.:${JAVA_HOME}/bin
The text was updated successfully, but these errors were encountered:
After Dockerfile creates the Java basic environment for microservices, the container executes a Java command error: error occurred during initialization of VM
Unable to load native library: Error loading shared library libjvm. so: No such file or directory (needed by/usr/local/Java/jdk1.8.0_221/jre/lib/amd64/libjava. so)
But the corresponding file can be found in the directory corresponding to the container.
===Below is Dockfile content===
FROM jeanblanchard/alpine-glibc
ADD jdk-8u321-linux-x64.tar.gz /usr/local/java
ENV JAVA_HOME /usr/local/java/jdk1.8.0_321
ENV CLASSPATH .:${JAVA_HOME}/lib
ENV PATH ${PATH}:.:${JAVA_HOME}/bin
The text was updated successfully, but these errors were encountered: