Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.IllegalStateException: Unable to find tools.jar #26

Open
tzachs opened this issue Oct 23, 2016 · 1 comment

Comments

@tzachs
Copy link

tzachs commented Oct 23, 2016

On windows, my JDK is installed at C:\Program Files\Java\jdk1.8.0_65.
JAVA_HOME is set to that directory.

From the code at we can see that 'locateToolsJar()' is searching in the wrong library.
Instead of searching in 'return new File(home,"../lib/tools.jar");' it should be 'return new File(home,"/lib/tools.jar");'

From 'https://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html' we can see that java.home is 'Installation directory for Java Runtime Environment (JRE)' and not JDK

@sanjaybsm
Copy link

Faced similar issue when I downloaded the jar and try to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants