Error: Cannot find tools.jar. It was expected to find it in / usr / lib / jvm / java-6-sun-1.6.0.26 / lib / tools.jar

I am trying to create jasperserver on linux. It uses ant and maven. By executing the ant command, it gives this exception. I checked the same path, however the lib folder does not exist on the same path. How can I solve this problem?

Thank!!

+5
source share
5 answers

tools.jar is present only in jdk, not in jre.

+7
source

I fixed this problem by installing jdk ..

Thanks everyone for the answer ..

+2
source

JVM , Ant. , JAVA_HOME JDK.

0

, 32- jre. JAVA_HOME, C:\Program Files\Java\jdk1.6.0_21\bin, 32- eclipse - C:\Program Files (x86)\Java\jre6\Bin.

, jdk. -vm "C:\Program Files (x86)\Java\jdk1.6.0_31\bin"

JAVA_HOME

, , jdk not jre http://gamefromscratch.com/post/2011/11/15/Telling-Eclipse-to-use-the-JDK-instead-of-JRE.aspx

0

: eclipse jre not jdk. jre, ,       → → Java → JRE
     , Standandrd VM, JRE home. jdk, . C:\Program Files\Java\jdk1.8.0_101

0

All Articles