Archive pour le tag 'ant'

Ecplise & Ant - Impossible de lancer javadoc

13 janvier 2005

En utilisant Ant avec Eclipse, il arrive souvent de rencontrer ce genre d’erreur :

Buildfile: D:eclipseworkspaceMyProjectbuild.xml
javadoc:
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
BUILD FAILED: D:eclipseworkspaceMyProjectbuild.xml:96:
Javadoc failed: java.io.IOException: CreateProcess: javadoc.exe
  -d "D:eclipseworkspaceMyProjectbuild.xmldoc" -package -doctitle "MyProject 1.0.0" -classpath
"D:eclipseworkspaceMyProjectlibcommons-beanutils.jar;
D:eclipseworkspaceMyProjectlibcommons-beanutils-bean-collections.jar;
D:eclipseworkspaceMyProjectlibcommons-beanutils-core.jar;
D:eclipseworkspaceMyProjectlibcommons-digester.jar;
D:eclipseworkspaceMyProjectlibcommons-logging.jar;
D:eclipseworkspaceMyProjectlibcommons-logging-api.jar;
D:eclipseworkspaceMyProjectlibcommons-pool-1.2.jar;
D:eclipseworkspaceMyProjectliblog4j-1.2.8.jar"
-version -author -tag "todo:a:To Do:" @C:DOCUME~1Tempjavadoc1318803750 error=2
Total time: 1 second

Cette erreur n’est qu’ un problème de path. ;-)

Lire le reste de cet article »

Ecplise & Ant - Impossible de trouver le compilateur

3 décembre 2004

En utilisant Ant avec Eclipse, il arrive souvent de rencontrer ce genre d’erreur :

Buildfile: D:eclipseworkspaceMyProjectbuild.xml

   build:
          [javac] Compiling 1 source file to D:eclipseworkspaceMyProjectdist
          [javac] BUILD FAILED: file:D:/eclipse/workspace/MyProject/build.xml:11:
          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
   Total time: 400 milliseconds

Ou bien :

Buildfile: D:eclipseworkspaceMyProjectbuild.xml

 dist-with-classpath:
         [rmic] RMI Compiling 1 class to D:eclipseworkspaceMyProjectdist
         [rmic] BUILD FAILED: file:D:/eclipse/workspace/MyProject/build.xml:53: Cannot use SUN rmic,
as it is not available.
A common solution is to set the environment variable JAVA_HOME or CLASSPATH.
 Total time: 2 seconds

Ces erreurs ne sont que des problèmes de classpath. ;-)

Lire le reste de cet article »