I am trying to install some software which was built with Ant, but I am a Java noobe, so its kicking my butt! I have followed a few sets of instructions for installing Java on CentOS 5, but they always seem to be for the wrong thing and now I seem to have all kinds of Java all over the place, except apparently the one I need.
Here is the condition Ant is complaining about
:
Code:
$ ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/lib/tools.jar
Buildfile: build.xml does not exist!
Build failed
Do I understand correctly that this is my Java machine or interpreter as I suppose? I mean that seems to be installed correctly:
Code:
$ java -version
java version "1.6.0_0"
IcedTea6 1.3.1 (6b12-Fedora-EPEL-5) Runtime Environment (build 1.6.0_0-b12)
OpenJDK Client VM (build 1.6.0_0-b12, mixed mode)
Other people who have reported the same error (Unable to locate
tools.jar), seem to install the JDK to fix the issue - which I guess is a build environment for building Java apps. (correct?)
Following what seemed to be instructions for installing the JDK - I installed the RPM:
jdk-6u13-linux-i586.rpm. However, the result was an install down in opt -
/opt/sun/javadb
In that tree there is a
derbytools.jar, but, its not a
tools.jar like Ant is looking for AND Ant seems to definitely want JAVA_HOME to point to its current 1.6.0 directory.
So - any suggestions? Can I make this JDK work with my other Java install? Am I using the wrong or incompatible parts?