Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: millepattes on October 13, 2011, 06:09:16 AM

Title: Ant throws " "Unable to locate tools.jar" error
Post by: millepattes on October 13, 2011, 06: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
Title: Re: Ant throws " "Unable to locate tools.jar" error
Post by: gerald_clark on October 13, 2011, 10:15:37 AM
It is expecting openjdk-6-jre.tcz to be loaded.
Title: Re: Ant throws " "Unable to locate tools.jar" error
Post by: webb 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.
Title: Re: Ant throws " "Unable to locate tools.jar" error
Post by: vinnie 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?