ant-1.5.2-26 (the one that comes with release iso's of fedora core 2)
I downloaded JBother, which is a jabber client. I ran ant on build.xml
file, and it gave compile errors complaining it can not find some
classes (e.g. JText, classes in swing package) that are already in
J2SDK. (version 1.4.02) These packages that the java compiler
complained about not finding are already in j2sdk libraries (I opened
src.zip from j2sdk, and verified that they are there, we are talking
about basic swing components, javax.sound classes )
then I went and downloaded ant 1.6 from the apache website it worked
fine. Also I ran it with the 1.5 version that I got from the apache
website, and it was also working.
The best way to reproduce:
the address for JBother (an open source app)
and using the cvs commands, download the source:
You can download the latest development snapshot via anonymous CVS. Type:
cvs -d ":pserver:firstname.lastname@example.org:/usr/local/cvs" login
Just hit enter when it ask for a password. Then type:
cvs -d ":pserver:email@example.com:/usr/local/cvs" co JBother
To download the latest source.
go into directory and type ant. If you have fedora core installed ant
(the rpm) it will give errors about not finding j2sdk base classes.
go and download from ant.apache.org site, set ant_home etc. it works fine.
I think this is a bug with the gcj-compiled version of ant that is in
/usr/bin/ant in FC2.
Problem will go away if one relinks classic-ant to be ant:
mv ant gcj-ant
ln -s classic-ant ant
Behavior when compiling jmol source (www.jmol.org) is the same as
reported above. Random classes in javax.swing.text are reported as
missing in the import statements. If you rearrange the import
statements then the *missing* classes change/move around.
My platform is amd64. At first I thought it was a problem with sun
jdk-1.5.0-rc-linux-amd64. But I found the same problem with
j2sdk-1.4.2 ... the 32 bit version.
Relink as above and your problem will go away.
Sounds like the problem is caused by missing classes. I'm going to
defer this, since a) you have a workaround, and b) ant will be
arranged differently in FC3.