Second way WORKS! thanks! 2010/9/7 reno <reno.rkc...@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-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >