i'm running into a similar problem... i downloaded the tar file, and placed in /opt/ and made a link w/ friendlier name:
Code: Select all
[root /opt %] ls -aol
total 32
drwxr-xr-x 8 root 4096 Aug 28 14:38 .
drwxr-xr-x 22 root 4096 Nov 26 2021 ..
drwxr-xr-x 4 root 4096 Dec 17 2019 amdgpu-pro
drwxr-xr-x 6 root 4096 Aug 27 14:28 brave
drwxr-xr-x 3 root 4096 Feb 21 2021 google
-rw-r--r-- 1 root 0 Jan 13 2021 .keep
lrwxrwxrwx 1 root 21 Aug 28 13:38 openjdk-bin-17 -> openjdk-bin-17.0.3_p7
drwxr-xr-x 9 root 4096 Aug 28 13:38 openjdk-bin-17.0.3_p7
drwxr-xr-x 3 root 4096 Jan 19 2021 spotify
drwxr-xr-x 10 root 4096 Jun 23 13:54 zulu18.32.11-ca-jdk18.0.2-linux_x64
lrwxrwxrwx 1 root 37 Aug 28 14:38 zulujdk-bin-18.0.2 -> ./zulu18.32.11-ca-jdk18.0.2-linux_x64
[root /opt %]
and i created /usr/share/java-config-2/vm/zulujdk-bin-18.0.2:
Code: Select all
[root /opt %] cat /usr/share/java-config-2/vm/zulujdk-bin-18.0.2
VERSION="Zulu Open JDK 18"
JAVA_HOME="/opt/zulu18.32.11-ca-jdk18.0.2-linux_x64"
JDK_HOME="/opt/zulu18.32.11-ca-jdk18.0.2-linux_x64"
JAVAC="${JAVA_HOME}/bin/javac"
PATH="${JAVA_HOME}/bin"
ROOTPATH="${JAVA_HOME}/bin"
LDPATH="${JAVA_HOME}/lib/:${JAVA_HOME}/lib/server/"
MANPATH=""
PROVIDES_TYPE="JDK JRE"
PROVIDES_VERSION="18"
BOOTCLASSPATH=""
GENERATION="2"
ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH ROOTPATH LDPATH MANPATH"
VMHANDLE="zulujdk-bin-18"
BUILD_ONLY="FALSE"
[root /opt %]
but when i list using eselect, i get:
Code: Select all
[root /opt %] eselect java-vm list
Available Java Virtual Machines:
grep: /usr/share/java-config-2/vm/zulu-jdk-18.0.2: No such file or directory
[1] openjdk-bin-17 system-vm
[2] zulu-jdk-18.0.2
[root /opt %]
which confuses me, because 1) /usr/share/java-config-2/vm/zulu-jdk-18.0.2 shouldn't be a directory anyway, right? and 2) i set up the zulu config file to mirror the openjdk file...
what did i do incorrectly?
needless to say, if i set it to (2) and run java, i get an error:
Code: Select all
[root /opt %] eselect java-vm set 2
[root /opt %] java
* java is not available for zulu-jdk-18.0.2 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures
[root /opt %]
so clearly something is broken...
thanks!