prblem win implement jsim

51 views
Skip to first unread message

khaled hassan

unread,
Feb 18, 2014, 7:38:54 PM2/18/14
to j-sim...@googlegroups.com
when i run jsim i  find these erorr
1- C:\jsim-1.3>ant compile
Unable to locate tools.jar. Expected to find it in C:\jdk1.5.0_22\lib\tools.jar
Buildfile: build.xml
init:
     [echo] 19-February-2014 03:32 AM

compile:
    [javac] Compiling 549 source files to C:\jsim-1.3\classes
BUILD FAILED
C:\jsim-1.3\build.xml:75: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\jdk1.5.0_22"

2- C:\jsim-1.3>ant run
Unable to locate tools.jar. Expected to find it in C:\jdk1.5.0_22\lib\tools.jar
Buildfile: build.xml
init:
     [echo] 19-February-2014 03:33 AM
compile:
    [javac] Compiling 549 source files to C:\jsim-1.3\classes
BUILD FAILED
C:\jsim-1.3\build.xml:75: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\jdk1.5.0_22"


please anyone kown why ??
 thank you

jumbler

unread,
Feb 20, 2014, 3:56:23 AM2/20/14
to j-sim...@googlegroups.com
The posted error log tells you that the environment varaible JAVA_HOME has been set wrong.
-------------
"C:\jsim-1.3\build.xml:75: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\jdk1.5.0_22"
-------------

please set the environment variable JAVA_HOME with the directory where the JDK has been installed.


khaled hassan於 2014年2月19日星期三UTC+8上午8時38分54秒寫道:

khaled hassan

unread,
Feb 20, 2014, 11:41:03 AM2/20/14
to j-sim...@googlegroups.com

thanks jumbler .the problem has been solved
Reply all
Reply to author
Forward
0 new messages