Answers for "set java_home environment variable"

2

set java home path

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

# Add JAVA bin directory to the PATH variable
export PATH=$PATH:$JAVA_HOME/bin
Posted by: Guest on July-22-2020
0

Set the JAVA_HOME variable via the command line

> Open Command Prompt (make sure you Run as administrator)
  
      Click on start Button >> type ' cmd 'in search Box >> Press Right mouse button on cmd >> 
      In a pop-up select " Run as administrator "
        


> COPY THIS COMMAND & SET YOUR JDK INSTALLED PATH IN DOUBLE QUOTES (" ") :  
                       
      setx -m JAVA_HOME "C:\Progra~1\Java\jdk1.8.0_XX"
                       
  NOTE: If the path contains spaces, use the shortened path name.


> Restart Command Prompt to reload the environment variables 
  then use the following command to check the its been added correctly. 
 
      echo %JAVA_HOME%
                       
> You should see the path to your JDK (or JRE) installation.
Posted by: Guest on June-15-2021

Code answers related to "set java_home environment variable"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language