Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: zyng Newsgroups: comp.lang.java.programmer Subject: the classes in rt.jar cannot be found during ant build Date: Mon, 2 Apr 2012 14:07:17 -0700 (PDT) Organization: http://groups.google.com Lines: 18 Message-ID: <21704562.1053.1333400837411.JavaMail.geo-discussion-forums@ynlt15> NNTP-Posting-Host: 72.192.242.74 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1333400838 27257 127.0.0.1 (2 Apr 2012 21:07:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 2 Apr 2012 21:07:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=72.192.242.74; posting-account=oo44OQoAAABMDvaRlaO3SeQ5MVbxqLdH User-Agent: G2/1.0 X-Received-Bytes: 1505 Xref: csiph.com comp.lang.java.programmer:13318 Hi, In my build.xml, ... ... The environment variable JAVA_HOME has been set to: C:\Program Files\Java\jdk1.6.0_24 When I run it, those classes inside rt.jar cannot be found. I have print out, using echo, the classpath and rt.jar is included in the classpath. I don't understand why the classes in rt.jar cannot be reached by javac. Thank you very much.