WHY THE JAVA_HOME OFTEN AN ISSUE?


ERROR:
While  installing Elastic Search / Tomcat / eclipse or any java apps you might get this error.

'JAVA_HOME variable to be set...'
'No Java virtual machine found ....'
'A java Runtime Environment (JRE) or Java Development kit (JDK) must be available in order to run 'Eclipse. No Java virtual machine was found after searching the following locations:C:\your program\jre\bin\'
'javaw.exe in your current PATH'

- it occurs even if the JAVA_HOME - system variable is already set in the Environment variables.

CAUSE:

The applications using batch files to execute the jar files before even detecting the JAVA_HOME from the code, are looking for a javaw.exe to run the java code in the local path or in the global path (which is set in the system environment variables). 

FIX:
Add System Variables in Environment Variables in WIN 8 / WIN 7 do the following,

Add  %JAVA_HOME%\bin    - to the PATH  - System Variable in the Environment Variables

Always do BOTH steps to move ahead quickly.

I know every new system you install first time, you will have to go through this wired issue apart from downloading new versions and updates , this is how it works since 1996 !!. 

Comments