viscount
December 25th, 2005, 08:49 AM
When running Ant from the command line
$ ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/lib/tools.jar
However I do have sun-jdk1.5 installed and selected to be my default
$ sudo update-alternatives --config java
There are 4 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.0
2 /usr/lib/jvm/java-gcj/bin/java
* 3 /usr/lib/j2sdk1.5-sun/bin/java
+ 4 /usr/lib/j2se/1.4/bin/java
..so what gives? It seems that Ant can not find the 1.5 version and falls back to the 1.4 version which is missing the .jar stuff..
Raises two questsions, why cant it find 1.5, and why doesnt 1.4 have jar stuff?
Thanks.
Also, I should have posted this (http://www.ubuntuforums.org/showthread.php?p=602826#post602826) in the development forum, perhaps a mod can change that for me.
$ ant
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/lib/tools.jar
However I do have sun-jdk1.5 installed and selected to be my default
$ sudo update-alternatives --config java
There are 4 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
1 /usr/bin/gij-wrapper-4.0
2 /usr/lib/jvm/java-gcj/bin/java
* 3 /usr/lib/j2sdk1.5-sun/bin/java
+ 4 /usr/lib/j2se/1.4/bin/java
..so what gives? It seems that Ant can not find the 1.5 version and falls back to the 1.4 version which is missing the .jar stuff..
Raises two questsions, why cant it find 1.5, and why doesnt 1.4 have jar stuff?
Thanks.
Also, I should have posted this (http://www.ubuntuforums.org/showthread.php?p=602826#post602826) in the development forum, perhaps a mod can change that for me.