Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@hepinggeIT
Copy link

hepinggeIT commented Feb 1, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant