Re: I'm trying to install ant, and it's complaining about tools.jar not being in /usr/lib/sablevm/lib/
Xeno Campanoli wrote:
Okay, I install ant with apt-get, and now I still have some odd problems.
One, when I specify -h it tries to do a build, and still doesn't see
tools.jar:
free vm's don't provide tools.jar - this is just a warning message
which can be ignored as the free vm's provide their classes in
another way as sun jdks.
leadbelly:/etc/apt# ant --help
/usr/bin/ant [script options] [options] [target [target2 [target3] ..]]
Script Options:
--help, --h print this message and ant help
--noconfig suppress sourcing of /etc/ant.conf,
$HOME/.ant/ant.conf, and $HOME/.antrc
configuration files
--usejikes enable use of jikes by default, unless
set explicitly in configuration files
--execdebug print ant exec line generated by this
launch script
Unable to locate tools.jar. Expected to find it in
/usr/lib/sablevm/lib/tools.jar
Buildfile: build.xml does not exist!
Build failed
Everything ok here (see explanation below)
> Also, I'd like to see the version (a la page 24 of the O'Reilly
hornytoad
book), and no dice:
leadbelly:/etc/apt# ant -version
Unable to locate tools.jar. Expected to find it in
/usr/lib/sablevm/lib/tools.jar
Buildfile: build.xml does not exist!
Build failed
Is there a way to fix this, or do I just have a broken version?
Everything ok here - as long as you don't provide a build.xml file
nothing happens. Just try it with an empty build.xml file which only
needs to contain:
<project/>
Plaxe it in your current directory and you will see it works.
However please note that this is not a support list for general
java programming questions but for debian java packaging
questions/problems.
If you have general java questions please as on other support lists
like the ant user mailinglist or somewhere else.
Thanks for understanding,
Wolfgang
Reply to: