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/jvm/java-6-openjdk-i386/jre"
Erm ..但它指向一個JDK,在這裏打開JDK。我在這裏錯過了什麼嗎?在Ubuntu中安裝Clojure時出現錯誤。
不,這是'jre'(Jave Runtime Environment),而不是JDK。相關:http://stackoverflow.com/questions/5736641/ant-unable-to-find-javac-java-home-wont-set-on-ubuntu/5736774#5736774 ...你真的安裝了JDK嗎? (不要問我爲什麼他們這樣打包) –
我確實安裝了jdk。但它仍然不起作用。 – Hick
然後你只需要正確設置你的'JAVA_HOME',而不是指向JRE。這個問題的其他答案解釋瞭如何。 –