IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

ANT Java Discussion :

Erreur "package does exist"


Sujet :

ANT Java

  1. #1
    Invité
    Invité(e)
    Par défaut Erreur "package does exist"
    Bonjour à tous !

    Comme vous avez pu le deviner j'ai un petit soucis avec Ant !

    Je souhaite compiler mon projet avec jar externe! Tous marche sauf qu'il e trouve pas un package qui devrait être là !

    voici mon build.xml


    <project name="DlpL22" default="run" basedir=".">

    <property name="nameJar" value="DLPL22"/>
    <property name="mainClass" value="main.Main_DLP_L22"/>
    <property name="src.dir" value="src"/>
    <property name="bin.dir" value="bin"/>
    <property name="jar.dir" value="exe"/>
    <property name="doc.dir" value="doc"/>
    <property name="lib.dir" value="lib"/>

    <path id="lib.classpath">
    <fileset dir="${lib.dir}" includes="**/*.jar"/>
    </path>

    <property name="classpath.dir" refid="lib.classpath"/>

    <!-- Informations -->
    <target name="init" description="Initialisation">
    <tstamp/>
    <buildnumber file="numerobuild.txt" />
    <echo message="Generation numero : ${build.number} du ${TODAY}"/>
    <echo message="Ant building started"/>
    <echo message="Ant Version :${ant.version}"/>
    <echo message="Ant directory : ${ant.home}"/>
    <echo message="Java Version : ${ant.java.version}"/>
    <echo message="Java directory : ${java.home}"/>
    <echo message="Java directory : ${java.vm.version} ${java.class.version} ${java.vm.specification.version} ${java.specification.version}"/>
    <echo message="Project = ${ant.project.name}"/>
    <echo message="Librairy of java : ${java.class.path}"/>
    <echo message="Librairy of project : ${classpath.dir}"/>
    </target>

    <!-- Clean up -->
    <target name="clean" depends="init" description="clean directory">
    <echo message="Cleaning started"/>
    <delete dir="${bin.dir}"/>
    <delete dir="${jar.dir}"/>
    <delete dir="${doc.dir}"/>
    <echo message="Cleaning ok"/>
    </target>

    <!-- Compilation -->
    <target name="compile" depends="clean" description="compile the source">
    <echo message="Compiling started"/>
    <mkdir dir="${bin.dir}"/>
    <javac srcdir="${src.dir}" destdir="${bin.dir}" nowarn="true" includeAntRuntime="false" classpath="${classpath.dir}"/>

    <echo message="Compiling ok"/>
    </target>
    </project>


    Et voici ce qui m'affiche lorsque je le lance!

    Il ne trouve pas le package com.sun.xml.internal.ws.util alors qu'il devrait être présent car j'utilise le JDK!


    Buildfile: C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\Build.xml
    [echo] End of Ant building
    init:
    [echo] Generation numero : 99 du August 23 2010
    [echo] Ant building started
    [echo] Ant Version :Apache Ant version 1.7.1 compiled on June 27 2008
    [echo] Ant directory : C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145
    [echo] Java Version : 1.6
    [echo] Java directory : C:\Program Files\Java\jdk1.6.0_21\jre
    [echo] Java directory : 17.0-b17 50.0 1.0 1.6
    [echo] Project = DlpL22
    [echo] Librairy of java : C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-antlr.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-bcel.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-bsf.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-log4j.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-oro.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-regexp.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-apache-resolver.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-commons-logging.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-commons-net.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-jai.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-javamail.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-jdepend.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-jmf.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-jsch.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-junit.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-launcher.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-netrexx.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-nodeps.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-starteam.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-stylebook.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-swing.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-trax.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.apache.ant_1.7.1.v20090120-1145\lib\ant-weblogic.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\configuration\org.eclipse.osgi\bundles\21\1\.cp\lib\remoteAnt.jar;C:\Program Files\Java\jdk1.6.0_21\lib\tools.jar;C:\usr\telechargement\eclipse-java-galileo-SR2-win32\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.5.2.v3557f.jar
    [echo] Librairy of project : C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\lib\console.jar;C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\lib\log4j-1.2.16.jar
    clean:
    [echo] Cleaning started
    [delete] Deleting directory C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\bin
    [echo] Cleaning ok
    compile:
    [echo] Compiling started
    [mkdir] Created dir: C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\bin
    [javac] Compiling 551 source files to C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\bin
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\MessageSnc.java:39: package com.sun.xml.internal.ws.util does not exist
    [javac] import com.sun.xml.internal.ws.util.ByteArrayBuffer;
    [javac] ^
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\Repeater.java:29: package com.sun.xml.internal.ws.util does not exist
    [javac] import com.sun.xml.internal.ws.util.ByteArrayBuffer;
    [javac] ^
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\MessageSnc.java:510: cannot find symbol
    [javac] symbol : class ByteArrayBuffer
    [javac] location: class comm.socket.message.MessageSnc
    [javac] ByteArrayBuffer listvalue=new ByteArrayBuffer();
    [javac] ^
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\MessageSnc.java:510: cannot find symbol
    [javac] symbol : class ByteArrayBuffer
    [javac] location: class comm.socket.message.MessageSnc
    [javac] ByteArrayBuffer listvalue=new ByteArrayBuffer();
    [javac] ^
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\Repeater.java:200: cannot find symbol
    [javac] symbol : class ByteArrayBuffer
    [javac] location: class comm.socket.message.Repeater
    [javac] ByteArrayBuffer buf=new ByteArrayBuffer();
    [javac] ^
    [javac] C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\socket\message\Repeater.java:200: cannot find symbol
    [javac] symbol : class ByteArrayBuffer
    [javac] location: class comm.socket.message.Repeater
    [javac] ByteArrayBuffer buf=new ByteArrayBuffer();
    [javac] ^
    [javac] Note: C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\src\comm\protocol_comm\CommHandler.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 6 errors

    BUILD FAILED
    C:\usr\Jeremy_2010\Internship-jeremy-2010\Sources\DLP-L22-BASE\Build.xml:62: Compile failed; see the compiler error output for details.

    Total time: 3 seconds






    Merci d'avance à ceux qui m'aideront !

  2. #2
    Invité
    Invité(e)
    Par défaut
    Up

  3. #3
    Invité
    Invité(e)
    Par défaut
    Sa y est j'ai réussi!

    En faite vive le "Program File" !!!! Avec un jolie espace entre les deux du coup il ne trouvait pas le fichier!!

    Je tiens à me remercier

    A ceux que cela peut aider ! Une erreur à la noix !


+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Erreur "declaration package does not match"
    Par domxaline dans le forum Débuter avec Java
    Réponses: 16
    Dernier message: 05/07/2012, 16h31
  2. erreur a la compilation ,package does not existe
    Par 304bl dans le forum Général Java
    Réponses: 3
    Dernier message: 12/07/2011, 10h41
  3. jogl - package does not exist
    Par laurent_ifips dans le forum 3D
    Réponses: 6
    Dernier message: 14/04/2006, 22h59
  4. [MySQL] Supprimer les erreurs de syntaxe dues aux quotes
    Par gotenks dans le forum PHP & Base de données
    Réponses: 2
    Dernier message: 25/01/2006, 16h10

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo