WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Ant throws " "Unable to locate tools.jar" error  (Read 1742 times)

Offline millepattes

  • Newbie
  • *
  • Posts: 1
Ant throws " "Unable to locate tools.jar" error
« on: October 13, 2011, 05:09:16 AM »
Hi everyone,

I have installed on TCL (running on Oracle Vm Virtual Box) the following products:

openjdk-6-jdk
openjdk-6-jre
apache-ant

Then I have added JAVA_HOME, ANT_HOME and modified PATH environment variables in my configuration file.
Java works correctly, but when I try to launch ant, I get the following error:

"Unable to locate tools.jar. Expected to find in /tmp/tcloop/openjdk-6-jre/usr/local/openjdk-6/lib/tools.jar"

I don't understand why tools.jar is searched on the above path. Can anyone tell me if this is related to TCL?

Thanks,

Millepattes

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 3394
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #1 on: October 13, 2011, 09:15:37 AM »
It is expecting openjdk-6-jre.tcz to be loaded.

Offline webb

  • Newbie
  • *
  • Posts: 36
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #2 on: February 28, 2012, 10:22:54 AM »
I get the same error:

Unable to locate tools.jar. Expected to find it in /tmp/tcloop/openjdk-7-jre/usr/local/openjdk-7/lib/tools.jar

The file does exist:

/usr/local/openjdk-7/lib/tools.jar

...but since tcloop is a read-only filesystem, I can't dodge this problem with a symlink.

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1104
  • HandMace informatic works
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #3 on: February 28, 2012, 05:01:30 PM »
I would not say stupid things (I'm probably saying it), you use java ondemand / as a dependency?
You can try to set onboot?