Question: what is the difference between path and java_home?
Answer: JAVA_HOME and JRE_HOME are not used by Java itself. ... If you are not using software that requires them, you do not need to set JAVA_HOME and JRE_HOME. CLASSPATH is an environment variable which contains a list of directories and / or JAR files, which Java will look through when it searches for Java classes to load.