Open hanscees opened 2 years ago
I can get a java -version working after installing openjre10
tdnf install openjre10
but thats too old, so minecraft wont run:
java -Xmx1024M -Xms1024M -jar server.jar nogui Error: LinkageError occurred while loading main class net.minecraft.bundler.Main java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 53.0
Solutions? Or should I ditch photon4 for this purpose?
Ha, I did find java here, but when installing it does not make a /bin/java
/usr/lib/jvm/OpenJDK-1.11.0/bin/java -version openjdk version "11.0.9-internal" 2020-10-20 OpenJDK Runtime Environment (build 11.0.9-internal+0-adhoc..openjdk-11.0.9) OpenJDK 64-Bit Server VM (build 11.0.9-internal+0-adhoc..openjdk-11.0.9, mixed mode)
However, its still much too old: /usr/lib/jvm/OpenJDK-1.11.0/bin/java -Xmx1024M -Xms1024M -jar server.jar nogui Error: LinkageError occurred while loading main class net.minecraft.bundler.Main java.lang.UnsupportedClassVersionError: net/minecraft/bundler/Main has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
@hanscees we currently have openjdk11 11.0.9 version packaged with photon os 4.0. We will update to 11.0.12 which is latest.
@hanscees can you once try with latest jdk11 and let us know if this helps i.e., 11.0.12 https://github.com/vmware/photon/commit/bbdba4404637315e563980c11fb1b8f9b68e964c
We will fix the /bin/java
path with jdk11 in another patch very soon.
has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
looks like you need JDK/JRE17 according to this https://javaalmanac.io/bytecode/versions/
a workaround could be to bootstrap your java installation from https://sdkman.io/
Thank you, that's useful.
I have installed an alpine linux vm which also works.
Verstuurd vanaf mijn iPad
Op 31 mrt. 2022 om 12:43 heeft Alfred Reibenschuh @.***> het volgende geschreven:
has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
looks like you need JDK/JRE17 according to this https://javaalmanac.io/bytecode/versions/
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
Hi, I was using the latest photon (4.0) image from the docker hub and was trying to install java 11 on top of it. I am getting Error: dl failure on line 598 Error: failed /usr/lib/jvm/OpenJDK-1.11.0/lib/server/libjvm.so, because libstdc++.so.6: cannot open shared object file: No such Is this resolved?
root [ / ]# tdnf install -y openjdk11 Refreshing metadata for: 'VMware Photon Linux 4.0 (x86_64)' Refreshing metadata for: 'VMware Photon Extras 4.0 (x86_64)' Refreshing metadata for: 'VMware Photon Linux 4.0 (x86_64) Updates' photon-updates 168822 100% Installing: pcre-libs x86_64 8.44-4.ph4 photon-updates 480.89k 492434 libselinux x86_64 3.3-1.ph4 photon-updates 170.36k 174450 libsepol x86_64 3.3-1.ph4 photon-updates 764.12k 782456 slang x86_64 2.3.2-1.ph4 photon-release 3.12M 3273998 newt x86_64 0.52.21-1.ph4 photon-release 179.54k 183846 chkconfig x86_64 1.9-3.ph4 photon-updates 737.53k 755232 openjdk11 x86_64 11.0.12-3.ph4 photon-updates 301.53M 316175152
Total installed size: 306.93M 321837568
Downloading: pcre-libs 182887 100% libselinux 80699 100% libsepol 310999 100% slang 826995 100% newt 101755 100% chkconfig 187313 100% openjdk11 168364123 100% Testing transaction Running transaction Installing/Updating: slang-2.3.2-1.ph4.x86_64 Installing/Updating: newt-0.52.21-1.ph4.x86_64 Installing/Updating: libsepol-3.3-1.ph4.x86_64 Installing/Updating: pcre-libs-8.44-4.ph4.x86_64 Installing/Updating: libselinux-3.3-1.ph4.x86_64 Installing/Updating: chkconfig-1.9-3.ph4.x86_64 Installing/Updating: openjdk11-11.0.12-3.ph4.x86_64
Complete! root [ / ]# /usr/bin/java --version Error: dl failure on line 598 Error: failed /usr/lib/jvm/OpenJDK-1.11.0/lib/server/libjvm.so, because libstdc++.so.6: cannot open shared object file: No such file or directory root [ / ]# ls /usr/lib/jvm/OpenJDK-1.11.0/lib/server/libjvm.so /usr/lib/jvm/OpenJDK-1.11.0/lib/server/libjvm.so root [ / ]#
Describe the bug
Hi, I did
tdnf install openjdk11
install seems to go well.
Downloading: slang 826995 100% newt 101755 100% chkconfig 187313 100% openjdk11 168231978 100% Testing transaction Running transaction Installing/Updating: slang-2.3.2-1.ph4.x86_64 Installing/Updating: newt-0.52.21-1.ph4.x86_64 Installing/Updating: chkconfig-1.9-3.ph4.x86_64 Installing/Updating: openjdk11-11.0.9-2.ph4.x86_64
however, after install there is no java
java -v -bash: java: command not found
Am I missing something?
Reproduction steps
Expected behavior
java should tell its version
Additional context
I am trying to run a minecraft server, for what its worth, and no docker version.