You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/12/23 07:58:09 UTC

DO NOT REPLY [Bug 32820] - Unable to locate tools.jar in JDK 1.5.0_01

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32820





------- Additional Comments From jan@materne.de  2004-12-23 07:58 -------
Workaround is including that file by hand:

ant -lib C:\Program Files\Java\jdk1.5.0_01\lib\tools.jar


But I think your environment is net set correctly. Just a view into ant.bat:
- execute %HOME%\antrc_pre.bat
- check ANT_HOME
- check Java
  1) set _JAVACMD=%JAVACMD%
  2) use java.exe from JAVA_HOME\bin
  3) use java.exe from PATH
- start Ant
- execute %HOME%\antrc_post.bat

1) I think your JAVA_HOME points to the JRE and not to the JDK.
2) If you cant reset your JAVA_HOME you could try to reset it in the %HOME%
\antrc_pre.bat and restore it in %HOME%\antrc_post.bat
3) If that doesnt work you could include tools.jar in CLASSPATH (maybe set in 
the pre bat).


These are the first statements about "Workaround" and first thoughts. I havent 
verified that behaviour yet.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org