Problem how to set up java home
Before setting up your java home you may need to find JDK installation folder. This is how to find the installation path for your JDK(Java Development Kit).
Open the default installation path for the java:
C:\Program Files\Java
There should be a subfolders like:
- jdk1.8.0_111
- jre1.8.0_111
- jre1.8.0_73
You need the latest JDK
C:\Program Files\Java\jdk1.8.0_111
Note: Depending on your software requirements you may put /bin in the end or without:
C:\Program Files\Java\jdk1.8.0_111
C:\Program Files\Java\jdk1.8.0_111\bin
For my needs I use it without bin
Solution Set the JAVA_HOME Variable Windows 7
Once you have the JDK installation path:
- Right-click the My Computer icon on your desktop or Start Menu and select Properties.
- Click the Advanced tab, then click the Environment Variables button.
- Under System Variables, click New.
- Enter the variable name as JAVA_HOME.
- Enter the variable value as the installation path for the Java Development Kit.
- Click OK.
- Click Apply Changes.
You might need to restart Windows.
Solution Set the JAVA_HOME Variable Windows 10
Also working for window 7 as the previous method would work for 10:
- WIN + BREAK
- Advanced System Settings from the left menu
- Environment Variables... the button on the bottom right
- Enter the variable name as JAVA_HOME.
- Enter the variable value as the installation path for the Java Development Kit.
- Click OK.
- Click Apply Changes.
You might need to restart Windows.