Top "Java-home" questions

JAVA_HOME is an environment variable which should point to the root directory of the JDK installation.

JAVA_HOME not found as Sudo

I have a bash script on a Linux box that runs a Jar file. When logged in as a regular …

java linux sudo java-home
Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1

In my setup on macOS I'm working with several JDKs, switching between them via /usr/libexec/java_home tool, similar …

java macos java-home macos-big-sur
What is the good way of setting JAVA_HOME system wide in Linux? /etc/profile or /etc/profile.d/custom.sh?

There doesn't seem to be an official answer as to where to set your system wide JAVA_HOME in Linux, …

java-home
JAVA_HOME is incorrectly set when launching Zookeeper on Windows

I'm having a "JAVA_HOME is incorrectly set" error when launching Zookeeper on windows with zkServer.cmd while it is …

windows command-line environment-variables apache-zookeeper java-home
How to set JAVA_HOME environment variable on macOS?

According to this mobilefirst tutorial, it mentioned: You must have the JAVA_HOME environment variable set to your JDK directory. …

bash macos java-home
SET JAVA_HOME to reflect jenv java version

I just started to use jenv, I followed a blog post that was explaining how to use jenv and setup …

.bash-profile java-home jenv
Which of these is my JDK path, and which is JAVA_HOME?

I just installed Linux Mint and am trying to configure SpringSource Tool Suite which requires you to direct it to …

java sts-springsourcetoolsuite java-home linux-mint
Windows JAVA HOME problems

I'm trying to experiment with OracleHelp for Java on my Windows Vista server. I downloaded Oracle help, and I'm following …

windows variables environment java-home
Set $JAVA_HOME in eclipse but ANT Cannot Find Java Compiler

I add this line to /home/{user}/.bashrc file: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk but when I …

eclipse ant java-home
JAVA_HOME or PATH or BOTH?

I was watching the Android development video and they asked us to install JDK and create JAVA_HOME environment variable. …

path myeclipse java-home