我此行添加到/home/{user}/.bashrc
文件:
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
但是當我要運行在Eclipse的Ant文件得到這個錯誤:
BUILD FAILED
/home/bakish/Work/new/hadoop-0.20.2/build.xml:316: 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/jre"
我該怎麼辦?
感謝
不要忘記投票了答案,如果它幫助你 – 2011-03-14 10:13:32