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

init.d script doesn't recognize arm64 versions of jdk #2253

Open
ArchanDasArgus opened this issue Jun 3, 2022 · 2 comments
Open

init.d script doesn't recognize arm64 versions of jdk #2253

ArchanDasArgus opened this issue Jun 3, 2022 · 2 comments

Comments

@ArchanDasArgus
Copy link

Hi,

Even when JAVA_HOME is correctly hardcoded with the location of the arm64 jdk, the init.d script still throws an error saying that no JDK was found. Only after adding the location of the arm64 jdk to the list of locations in the script does the program start properly.

@ArchanDasArgus
Copy link
Author

In build-aux/deb/init.d/opentsdb
JDK_DIRS="\ /usr/lib/jvm/java-8-oracle /usr/lib/jvm/java-8-openjdk \ /usr/lib/jvm/java-8-openjdk-amd64/ /usr/lib/jvm/java-8-openjdk-i386/ \ \ /usr/lib/jvm/java-7-oracle /usr/lib/jvm/java-7-openjdk \ /usr/lib/jvm/java-7-openjdk-amd64/ /usr/lib/jvm/java-7-openjdk-i386/ \ \ /usr/lib/jvm/default-java"
causes an issue, but
JDK_DIRS="\ /lib/jvm/java-8-openjdk-arm64 \ /usr/lib/jvm/java-8-oracle /usr/lib/jvm/java-8-openjdk \ /usr/lib/jvm/java-8-openjdk-amd64/ /usr/lib/jvm/java-8-openjdk-i386/ \ \ /usr/lib/jvm/java-7-oracle /usr/lib/jvm/java-7-openjdk \ /usr/lib/jvm/java-7-openjdk-amd64/ /usr/lib/jvm/java-7-openjdk-i386/ \ \ /usr/lib/jvm/default-java"
allows it to work. This is after running export JAVA_HOME=/lib/jvm/java-8-openjdk-arm64.

@deamerfire
Copy link

deamerfire commented Jun 3, 2022 via email

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

2 participants