I will be really glad if anyone was familiar with the following?
BT ant $ ant all
Unable to locate tools.jar. Expected to find it in /usr/lib/java/lib/tools.jar
[javac] Compiling 180 source files to /home/manos/Desktop/downloads/jcommon-1.0.8/build
/home/manos/Desktop/downloads/jcommon-1.0.8/ant/build.xml:51: 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/java"
Total time: 1 second
I recently downloaded Ant and I set the environment variables to /etc/profile
This is how i set up the variables in the end of etc/profile
# For non-root users, add the current directory to the search path:
if [ ! "`id -u`" = "0" ]; then
Any ideas how can i set JAVA_HOME ?
Thanks for your time