2011-02-07 45 views
1

我已经按照本指南: https://github.com/ericflo/twissandra设置Cassandra for Django在Ant上失败:无法找到javac编译器;

我失败了:

cd cassandra 
ant 

它给消息:

BUILD FAILED 
/home/z/cassandra/build.xml:348: 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" 

Total time: 6 minutes 15 seconds 

我不知道任何有关Java

回答

1

您需要一个用于该操作的JDK(Java开发工具包)。我最好的猜测是,你只能有JRE(Java运行环境)

如果您正在运行Ubuntu,并希望安装Sun /甲骨文的JDK版本:

$sudo apt-get install sun-java6-jdk 
+0

错过了“的Java 6的OpenJDK”部分。如果你已经成功安装了应该足够的openjdk。类路径可能是错误的。 – Schildmeijer 2011-02-07 15:17:04

相关问题