ant erro JAVA_HOME não aponta para SDK

Estou tentando instalar o SOLR e executando o "exemplo de ant" A compilação fica muito longe, mas gera um erro:

/root/apache-solr-3.2.0/solr/common-build.xml:250: The following error occurred while executing this line:
/root/apache-solr-3.2.0/lucene/contrib/contrib-build.xml:58: The following error occurred while executing this line:
/root/apache-solr-3.2.0/lucene/common-build.xml:298: The following error occurred while executing this line:
/root/apache-solr-3.2.0/lucene/common-build.xml:733: 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-1.6.0-openjdk-1.6.0.0.x86_64/jre"

Eu tenho o conjunto de explicações JAVA_HOME (veja abaixo)

# echo $JAVA_HOME
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/

No entanto, o JAVA_HOME quando executo o ant é exibido como /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre em vez de # echo $ JAVA_HOME /usr/lib/jvm/java-1.6. 0-openjdk-1.6.0.0.x86_64 /. Não consigo descobrir onde isso está sendo definido. Também defini ANT_HOME, como foi declarado em algumas outras postagens que isso pode corrigir o problem

# echo $ANT_HOME
/usr/share/ant/

Isso também não corrig

questionAnswers(1)

yourAnswerToTheQuestion