

Expected to find it in C: Program Files Java jre6 lib tools.jar Buildfile: setup.xml How can I fix this problem?

BUILD FAILED C: Users Derek Desktop eclipse eclipse glassfish setup.xml:161: The following error occurred while executing this line: C: Users Derek Desktop eclipse eclipse glassfish setup.xml:141: The following error occurred while executing this line: C: Users Derek Desktop eclipse eclipse glassfish setup.xml:137: Please set to a JDK installation Total time: 1 second C: Users Derek Desktop eclipse eclipse glassfish>lib ant bin ant -f setup.xml Unable to locate tools.jar. Both were named JAVA_HOME and both pointing to C: Sun SDK jdk bin But for some reason, I still get the below error when running a Java command. I went to the Environment Variables in 'System' in the control panel and made two new variables, one for user variables and one for system variables. If you correctly configured then it will display the Java version on command 2.com › █ █ Java Home Path For Catia V6r2012 █ █ Open command prompt and check java -version. Append %JAVA_HOME%\bin in Path variable value, click Ok to apply the changes. Select Path variable under Environment Variables, click on Edit button. Append JAVA_HOME variable in Path variable. Variable Value: C:\Program Files\Java\jdk1.8.0_111Ħ. Rest all step will be same for Windows 7, Windows 8 and Windows 10) ( For Windows 7 user: After click on “Advanced”, System Properties window will be prompt. Click on Advanced system settings and Environment Variables. Here is the complete step guideline for windows 10Ģ.1) Go to control panel -> System and Securityģ. Windows 10 : Go to control Panel -> System and Security -> System -> Advanced System Settings.Windows 8 : Go to Control Panel > System > Advanced System Settings.

Windows 7 : Right click My Computer icon -> Select “Properties” > Advanced.Follow the below step on the basis of your operating system If you didn’t change the default path during java installation then it’ll be C:\Program Files\Java\jdk1.8.0_111Ģ. Know your Java installation Directory and Copy the JDK installation directory path.So here is the step by step guideline to set JAVA_HOME path in Windows 7 / Windows 8 / Windows 10. But it will be better if we have all the steps in a single place.

I know this is very simple things to do and specially if you are an expert developer 🙂.
