-4

I am building a cloud application programmed in Java.

I got this problem:

Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar

I have installed jdk and the folder: C:\Program Files\Java\jre7\lib is existed in my system but the lib: tools.jar is not there.

any idea?

jr.
  • 1,699
  • 14
  • 31
  • 6
    It seems obvious that tools.jar is expected in the **jre6** folder while your jre installation is a different version and located in the **jre7** folder. – Filburt Jul 10 '14 at 07:11
  • 1
    possible duplicate of [Unable to locate tools.jar](http://stackoverflow.com/questions/5730815/unable-to-locate-tools-jar) – Jean-Rémy Revy Jul 10 '14 at 07:39
  • I know `cloud` might be a popular buzzword right now, but adding it as a tag and in the description when it's not relevant at all doesn't really help. – jr. Jul 10 '14 at 08:21

1 Answers1

0

tools.jar is a part of JDK not JRE.
Please, check your environment variables PATH and JAVA_HOME.
JAVA_HOME should be set to JDK home directory e.g.

JAVA_HOME=C:\Program Files\Java\jdk6  

PATH should contains %JAVA_HOME%\bin

PATH=...;%JAVA_HOME%\bin;...
Ilya
  • 29,135
  • 19
  • 110
  • 158