I have been attempting to install Clojure on Ubuntu using the directions found here:
http://riddell.us/ClojureOnUbuntu.html
For starters, that version of Java no longer seems to be supported- so I installed the Open JDK version 7 and have been attempting to use ant with that. Problem is, whenever I type sudo ant
to begin the build in the Clojure folder, I get:
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar
Buildfile: /home/nathan/opt/clojure/build.xml
And then eventually:
BUILD FAILED
/home/nathan/opt/clojure/build.xml:40: java.lang.UnsupportedClassVersionError: com/sun
/tools/javac/Main : Unsupported major.minor version 51.0
Note that at first it would fail because it could not locate tools.jar
, but then I copied tools.jar
from the jvm
directory where the most recent version was located to usr/share/ant/lib
to try and make it work. Anyone have leads or advice how to get this to work?
Thank you kindly!