You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Antonio Ragagnin <sp...@gmail.com> on 2010/09/07 12:27:03 UTC

setting tools.jar without administrative privileges (already searched on google!)

Hi,
when I run ANT i got the error

Unable to locate tools.jar. Expected to find it in
/usr/lib/jvm/java-6-openjdk/
lib/tools.jar
...
...
BUILD FAILED
/home/aragag/plar/build.xml:40: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"

here the SCENARIO:
- ANT is right: there is no /usr/lib/jvm/java-6-openjdk/lib/tools.jar file!
- I have found a tools.jar here
/usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar that could be used(I hope)
- but does NOT EXIST "bin" folder on /usr/lib/jvm/java-1.5.0-gcj-4.4/jre, so
it is a strange java folder
- when I run "update-alternatives --config java" I get this message:
 "There is only one alternative in link group java:
/usr/lib/jvm/java-6-openjdk/jre/bin/java"
- I'm using Ubuntu 10.04.1 LTS
- I cannot run "su" commands becouse I'm not the administrator (is a computer
of the college)

Thanks!

Re: setting tools.jar without administrative privileges (already searched on google!)

Posted by Antonio Ragagnin <sp...@gmail.com>.
Second way WORKS! thanks!

2010/9/7 reno <re...@free.fr>

> Antonio,
>
> ask for administrator privileges or ask to the administrator to install a
> sun jdk (open or not) or download the jdk in your home, unzip it and install
> it in your home ($USER_HOME/apps) and modify your .bashrc to set your
> JAVA_HOME ...
> the second option is the better choice but i don't know if it is possible
> (it could :-) )
>
> S.
>
>  Hi,
>> when I run ANT i got the error
>>
>> Unable to locate tools.jar. Expected to find it in
>> /usr/lib/jvm/java-6-openjdk/
>> lib/tools.jar
>> ...
>> ...
>> BUILD FAILED
>> /home/aragag/plar/build.xml:40: Unable to find a javac compiler;
>> com.sun.tools.javac.Main is not on the classpath.
>> Perhaps JAVA_HOME does not point to the JDK.
>> It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
>>
>> here the SCENARIO:
>> - ANT is right: there is no /usr/lib/jvm/java-6-openjdk/lib/tools.jar
>> file!
>> - I have found a tools.jar here
>> /usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar that could be used(I hope)
>> - but does NOT EXIST "bin" folder on /usr/lib/jvm/java-1.5.0-gcj-4.4/jre,
>> so
>> it is a strange java folder
>> - when I run "update-alternatives --config java" I get this message:
>>  "There is only one alternative in link group java:
>> /usr/lib/jvm/java-6-openjdk/jre/bin/java"
>> - I'm using Ubuntu 10.04.1 LTS
>> - I cannot run "su" commands becouse I'm not the administrator (is a
>> computer
>> of the college)
>>
>> Thanks!
>>
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: setting tools.jar without administrative privileges (already searched on google!)

Posted by reno <re...@free.fr>.
Antonio,

ask for administrator privileges or ask to the administrator to install 
a sun jdk (open or not) or download the jdk in your home, unzip it and 
install it in your home ($USER_HOME/apps) and modify your .bashrc to set 
your JAVA_HOME ...
the second option is the better choice but i don't know if it is 
possible (it could :-) )

S.
> Hi,
> when I run ANT i got the error
>
> Unable to locate tools.jar. Expected to find it in
> /usr/lib/jvm/java-6-openjdk/
> lib/tools.jar
> ...
> ...
> BUILD FAILED
> /home/aragag/plar/build.xml:40: Unable to find a javac compiler;
> com.sun.tools.javac.Main is not on the classpath.
> Perhaps JAVA_HOME does not point to the JDK.
> It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
>
> here the SCENARIO:
> - ANT is right: there is no /usr/lib/jvm/java-6-openjdk/lib/tools.jar file!
> - I have found a tools.jar here
> /usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar that could be used(I hope)
> - but does NOT EXIST "bin" folder on /usr/lib/jvm/java-1.5.0-gcj-4.4/jre, so
> it is a strange java folder
> - when I run "update-alternatives --config java" I get this message:
>  "There is only one alternative in link group java:
> /usr/lib/jvm/java-6-openjdk/jre/bin/java"
> - I'm using Ubuntu 10.04.1 LTS
> - I cannot run "su" commands becouse I'm not the administrator (is a computer
> of the college)
>
> Thanks!
>
>   



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org