Je construis aprofplot sur Ubuntu en utilisant Apache Ant. Quand j'entre la fourmi de commande dans le dossier contenant build.xml, je reçois cette erreur:Erreur "Impossible de trouver un compilateur javac" avec Ant sur Ubuntu
BUILD FAILED
/home/ashwin/aprof/aprofplot/nbproject/build-impl.xml:923: The following error occurred while executing this line:
/home/ashwin/aprof/aprofplot/nbproject/build-impl.xml:263: 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-7-openjdk-amd64/jre"
Total time: 2 seconds
[email protected]:~/aprof/aprofplot$ javac --version
The program 'javac' can be found in the following packages:
* default-jdk
* ecj
* gcj-4.8-jdk
* openjdk-7-jdk
* gcj-4.6-jdk
* openjdk-6-jdk
J'OpenJDK installé aussi. Qu'est-ce que je fais mal? Dois-je installer d'autres paquets?
Voir [Comment installer JDK sous Ubuntu?] (Http://stackoverflow.com/questions/14788345/how-to-install-jdk-on-ubuntu-linux/14788468# 14788468). En particulier, les instructions concernant 'export JAVA_HOME' sont importantes. –
les bibliothèques sont incorrectement liées je suppose. J'ai utilisé netbeans pour exécuter l'application. Il a fonctionné sans aucune erreur/échec de construction. – chrisrhyno2003