Your message dated Sun, 04 Mar 2007 01:12:10 +0000
with message-id <[EMAIL PROTECTED]>
and subject line ant-bootstrap.jar failure
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: ant
Version: 1.6.5-5
Severity: normal
I keep getting the following warnings when I'm trying to build a project
with ant.
[javac] warning: [path] bad path element "/usr/share/ant/lib/xml-apis.jar":
no such file or directory
[javac] warning: [path] bad path element
"/usr/share/ant/lib/xercesImpl.jar": no such file or directory
[javac] warning: [path] bad path element "/usr/share/ant/lib/xalan.jar": no
such file or directory
With some investigation, I found the following options were being sent
to javac (pulled from ant -v).
[javac] Using modern compiler
[javac] Compilation arguments:
[javac] '-d'
[javac] '/home/espeoneefi/programming/6.170/psets'
[javac] '-classpath'
[javac]
'/home/espeoneefi/programming/6.170/psets:/home/espeoneefi/programming/6.170/psets/lib/ant-contrib.jar:/home/espeoneefi/programming/6.170/psets/lib/daikon.jar:/home/espeoneefi/programming/6.170/psets/lib/java6170.jar:/home/espeoneefi/programming/6.170/psets/lib/javadoc6170.jar:/home/espeoneefi/programming/6.170/psets/lib/junit.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/home/espeoneefi/.ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant.jar:/usr/lib/j2sdk1.5-sun/lib/tools.jar'
[javac] '-sourcepath'
[javac] '/home/espeoneefi/programming/6.170/psets/ps0'
[javac] '-g'
[javac] '-Xlint'
[javac]
[javac] The ' characters around the executable and arguments are
[javac] not part of the command.
Thus, I tried calling javac manually using the above options to compile
a source file in my project. The warnings showed up as expected.
[EMAIL PROTECTED]:~/programming/6.170/psets/ps0$ javac -d
/home/espeoneefi/programming/6.170/psets -classpath
/home/espeoneefi/programming/6.170/psets:/home/espeoneefi/programming/6.170/psets/lib/ant-contrib.jar:/home/espeoneefi/programming/6.170/psets/lib/daikon.jar:/home/espeoneefi/programming/6.170/psets/lib/java6170.jar:/home/espeoneefi/programming/6.170/psets/lib/javadoc6170.jar:/home/espeoneefi/programming/6.170/psets/lib/junit.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/home/espeoneefi/.ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/ant.jar:/usr/lib/j2sdk1.5-sun/lib/tools.jar
-sourcepath /home/espeoneefi/programming/6.170/psets/ps0 -g -Xlint
/home/espeoneefi/programming/6.170/psets/ps0/HolaWorld.java
warning: [path] bad path element "/usr/share/ant/lib/xml-apis.jar": no such
file or directory
warning: [path] bad path element "/usr/share/ant/lib/xercesImpl.jar": no such
file or directory
warning: [path] bad path element "/usr/share/ant/lib/xalan.jar": no such file
or directory
3 warnings
[EMAIL PROTECTED]:~/programming/6.170/psets/ps0$
I then removed elements from the -classpath option one by one. When I
removed /usr/share/ant/lib/ant-bootstrap.jar and only that entry from
the -classpath argument, the warnings went away.
[EMAIL PROTECTED]:~/programming/6.170/psets/ps0$ javac -d
/home/espeoneefi/programming/6.170/psets -classpath
/home/espeoneefi/programming/6.170/psets:/home/espeoneefi/programming/6.170/psets/lib/ant-contrib.jar:/home/espeoneefi/programming/6.170/psets/lib/daikon.jar:/home/espeoneefi/programming/6.170/psets/lib/java6170.jar:/home/espeoneefi/programming/6.170/psets/lib/javadoc6170.jar:/home/espeoneefi/programming/6.170/psets/lib/junit.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/home/espeoneefi/.ant/lib/ant-contrib.jar:/usr/share/ant/lib/ant.jar:/usr/lib/j2sdk1.5-sun/lib/tools.jar
-sourcepath /home/espeoneefi/programming/6.170/psets/ps0 -g -Xlint
/home/espeoneefi/programming/6.170/psets/ps0/HolaWorld.java
[EMAIL PROTECTED]:~/programming/6.170/psets/ps0$
Feel free to ask if you want any more information. I'm not sure what
would be useful, not being really familiar with ant myself.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-2-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages ant depends on:
pn kaffe | java-virtual-mach <none> (no description available)
ii libxerces2-java 2.6.2-4 Validating XML parser for Java wit
ii sun-j2sdk1.5 [java2-runti 1.5.0+update06 Java(TM) 2 SDK, Standard Edition,
Versions of packages ant recommends:
pn ant-optional <none> (no description available)
ii sun-j2sdk1.5 [java-compil 1.5.0+update06 Java(TM) 2 SDK, Standard Edition,
-- no debconf information
--- End Message ---
--- Begin Message ---
I do not believe ant is adding the bootstrap Jar to its classpath.
Possibly the classpath has been set explicitly in your CLASSPATH
environment variable, or in your build.xml file.
Would you mind checking your build environment to see if the problem
lies there? If you feel that the problem is in ant itself, then please
feel free to re-open this bug.
Thanks
--- End Message ---
_______________________________________________
pkg-java-maintainers mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/pkg-java-maintainers