Quantcast
Channel: sleeplessbeastie's notes
Viewing all articles
Browse latest Browse all 770

How to define JAVA_HOME

$
0
0

Determine and set JAVA_HOME to execute Java command-line applications.

Determine JAVA_HOME using java binary location.

$ readlink -f $(which java) | sed s:bin/java::
/usr/lib/jvm/adoptopenjdk-11-hotspot-jre-amd64/

Use these instructions to set JAVA_HOME and execute the Java command-line application.

$ sudo -u java_user bash -c "JAVA_HOME=$(readlink -f $(which java) | sed s:bin/java::) /usr/libexec/java_application/app consume"

Viewing all articles
Browse latest Browse all 770

Trending Articles