Comment construire un projet android avec openjdk sur Ubuntu?

J'ai trouvé ce Est Java de Sun est vraiment nécessaire pour que l'aide du kit SDK d'Android sur Ubuntu 10.10? Je préfère OpenJDK mais je ne peut pas construire du projet android sous Ubuntu. Quand j'essaie:

$ ant debug

J'ai eu:

Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-6-openjdk/lib/tools.jar

...

BUILD FAILED
/home/kuba/projects/Android/android-sdk-linux/tools/ant/build.xml:651: The following error occurred while executing this line:
/home/kuba/projects/Android/android-sdk-linux/tools/ant/build.xml:672: 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"

J'ai la version java:

$ java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.10.1)
OpenJDK Client VM (build 19.0-b09, mixed mode, sharing)
  • Pouvez-vous sortie whereis javac ici?
  • javac: /usr/bin/javac - son script perl qui permet d'exécuter gcj
InformationsquelleAutor jcubic | 2012-06-24