0

I need to set JAVA_HOME in order to use a game engine in eclipse. I set the JAVA_HOME to the bin file location where java is installed on my computer. I also set the path location in the system variables. When I echo %JAVA_HOME% in the command prompt, the prompt returns the bin file location where java is installed. However, when I enter the command: java -version or javac -version the prompt returns an error message, saying that java or javac is unknown.

1
  • 3
    Can you share your JAVA_HOME and PATH env variables?
    – Mureinik
    Sep 30, 2019 at 6:33

1 Answer 1

0

After setting the JAVA_HOME, you have to set the JAVA_HOME into the path. On linux:

export PATH=$PATH:$JAVA_HOME/bin

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .