WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline millepattes

  • Newbie
  • *
  • Posts: 1
Ant throws " "Unable to locate tools.jar" error
« on: October 13, 2011, 09: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: 4254
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #1 on: October 13, 2011, 01:15:37 PM »
It is expecting openjdk-6-jre.tcz to be loaded.

Offline webb

  • Jr. Member
  • **
  • Posts: 52
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #2 on: February 28, 2012, 01:22:54 PM »
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: 1187
  • HandMace informatic works
Re: Ant throws " "Unable to locate tools.jar" error
« Reply #3 on: February 28, 2012, 08: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?