I followed the instructions in this document http://metanav.uninett.no/installing_from_source_on_debian but I get this error when i make
make[1]: Entering directory `/home/administrator/nav-3.3.3/src' Building Util ... (cd Util && /usr/bin/ant ) && touch Util Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4 .1-1.4.2.0/lib/tools.jar Buildfile: build.xml
init:
compile: [javac] Compiling 4 source files to /home/administrator/nav-3.3.3/src/Util/b uild
BUILD FAILED /home/administrator/nav-3.3.3/src/Util/build.xml:39: Unable to find a javac comp iler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK
Total time: 0 seconds make[1]: *** [Util] Error 1 make[1]: Leaving directory `/home/administrator/nav-3.3.3/src' make: *** [all] Error 1
What am I doing wrong?
Oddmund
On Sat, 2008-12-13 at 21:13 +0100, oddmund.kalland@aspnor.no wrote:
I followed the instructions in this document http://metanav.uninett.no/installing_from_source_on_debian but I get this error when i make
First of all, if you are using Debian, Debian packages are ready for use. Take a closer look at http://metanav.uninett.no/navdownload
make[1]: Entering directory `/home/administrator/nav-3.3.3/src'
NAV 3.3.3 is quite old. 3.4.4 is the latest stable version. 3.5.0 is in beta and a final release is just around the corner.
Building Util ... (cd Util && /usr/bin/ant ) && touch Util Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4 .1-1.4.2.0/lib/tools.jar Buildfile: build.xml
init:
compile: [javac] Compiling 4 source files to /home/administrator/nav-3.3.3/src/Util/b uild
BUILD FAILED /home/administrator/nav-3.3.3/src/Util/build.xml:39: Unable to find a javac comp iler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK
If you are still interested in debugging this instead of using the Debian package: You are using gcj (GNU Java Compiler) 1.4.2, while NAV requires Java SDK >= 1.5.0. On Debian etch, I recommend installing Sun's Java 1.5.0 by running `aptitude install sun-java5-jdk` as root and then use the update-alternatives command to set the new Java installation as the default one.
Or, easiest of all, use the provided Debian packages, and it will be taken care of for you.