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

API standards et tierces Java Discussion :

JDIC : Could not find main class


Sujet :

API standards et tierces Java

  1. #1
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut JDIC : Could not find main class
    Bonjour,

    J'ai un petit souci.
    J'ai essayé d'intégrer l'API JDIC afin de pouvoir ouvrir n'importe quel type de fichier automatiquement depuis mon appli JAVA. Quand je développe sous Eclipse, j'ai aucun souci, ça marche du feu de Dieu.

    Mais quand j'essaie de générer le JAR de mon appli, et que j'essiae de l'exécuter, j'ai une boîte de dialogue pas très gentille qui me dit : "Could not find the main class. Program will exit."

    J'ai essayé de bidouiller les export, l'emplacement de ma librairie, le classpath, le manifest, rien n'y fait, et ça m'énerve!

    J'ai parcouru pas mal de post, mais y'a jamais de réponse à ce problème.
    Est-ce que quelqu'un peut m'aider? (surtout que c'est un peu urgent... )

    Merci d'avance.

  2. #2
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Salut,

    Ton manifest contient bien le nom de la classe principale (Main-Class: xxxx) ???

    Lances le jar manuellement avec la commande suivante :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    java -jar tonfichier.jar
    Cela devrait de permettre de voir l'exception exacte...

    a++

  3. #3
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Voici mon Manifest actuel :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Manifest-Version: 1.0
    Main-Class: cimpa.myapp.awt.MyApp
    Class-Path: . lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/jiu.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar
    Voilà le résultat :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/jdic/desktop/DesktopException
    J'ai le même message d'erreur en rajoutant jdic.jar dans le Manifest comme suit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Manifest-Version: 1.0
    Main-Class: cimpa.myapp.awt.MyApp
    Class-Path: . lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/jiu.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar lib/jdic-0.9.1/jdic.jar

  4. #4
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Et voici mon classpath :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    	<classpathentry kind="src" path="src"/>
    	<classpathentry kind="src" path="bin"/>
    	<classpathentry kind="lib" path="lib/castor-0.9.5.4-xml.jar"/>
    	<classpathentry kind="lib" path="lib/jiu.jar"/>
    	<classpathentry kind="lib" path="lib/xerces-J_1.4.0.jar"/>
    	<classpathentry kind="lib" path="lib/poi-2.5.1-final-20040804.jar"/>
    	<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/j2re1.4.2_08"/>
    	<classpathentry kind="lib" path="lib/numericalMethods.jar"/>
    	<classpathentry kind="lib" path="lib/jdic-0.9.1/jdic.jar"/>
    	<classpathentry kind="output" path="bin"/>
    </classpath>

  5. #5
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Et pour plus de précision, voilà le lien où on peut récupérer JDIC :
    https://jdic.dev.java.net/servlets/P...&folderID=3606

    Cette API est composée de plusieurs JAR présents dans des sous-dossiers et de quelques DLL aussi.
    Je me demande si le problème ne vient pas de l'inclusion des dll, mais je ne sais pas où les "spécifier" ni comment...

    Si vous avez besoin d'autres infos, n'hésitez pas...

  6. #6
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Salut,

    Tu dois bien sûr avoir le fichier jdic.jar dans ton classpath...

    Avec quoi tu crées ton fichier jar ?
    Les lignes des fichiers Manifest sont limité à 80 caractères il me semble. Vérifie que c'est bien le cas une fois que ton manifest est à l'intérieur du jar...

    Sinon concernant les dll et fichier natif, tu peux normalement conserver la même arborescence (le jar avec dans le même répertoire un dossier pour chaque système). Mais tu aurais eu une autre erreur...

    Tu es sûr que tu as la même erreur lorsque jdic.jar est dans le classpath ?

    a++

  7. #7
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Citation Envoyé par adiGuba
    Avec quoi tu crées ton fichier jar ?
    J'exporte mon projet depuis Eclipse vers un .jar. Ceci marchait très bien jusqu'à ce que j'intègre JDIC dans mon appli, et on a pu vérifier qu'en enlevant JDIC, tout marchait comme avant. Sauf que les nouvelles fonctionnalités nécessitant JDIC ne fonctionnent plus, bien évidemment...

    Citation Envoyé par adiGuba
    Les lignes des fichiers Manifest sont limité à 80 caractères il me semble. Vérifie que c'est bien le cas une fois que ton manifest est à l'intérieur du jar...
    A l'intérieur du jar, les lignes de mon manifest vont jusqu'à 120 caratères. Mais la déclaration d'une des bibliothèque que nous utilisons (POI) s'arrête au 110ème caractère, mais fonctionne correctement...

    Citation Envoyé par adiGuba
    Sinon concernant les dll et fichier natif, tu peux normalement conserver la même arborescence (le jar avec dans le même répertoire un dossier pour chaque système). Mais tu aurais eu une autre erreur...
    Ok, mais il ne faut pas déclarer les dll dans le classpath ou un truc du genre par hasard? Ou les placer dans un répertoire particulier? Si j'ai bien compris, il faut qu'ils soient accessibles par la JVM, et je ne sais pas si c'est le cas dans ma config... Est-ce qu'il existe un moyen de le savoir?

    Citation Envoyé par adiGuba
    Tu es sûr que tu as la même erreur lorsque jdic.jar est dans le classpath ?
    Ben oui, malheureusement, j'obtiens ça :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/jdic/desktop/DesktopException

  8. #8
    Membre éclairé Avatar de Pollux
    Profil pro
    Inscrit en
    Avril 2005
    Messages
    706
    Détails du profil
    Informations personnelles :
    Âge : 38
    Localisation : Suisse

    Informations forums :
    Inscription : Avril 2005
    Messages : 706
    Points : 680
    Points
    680
    Par défaut
    tu as pas plusieurs main?
    Pour chaque langage existe une faq / N'oubliez pas de lire les règles du forum

  9. #9
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Citation Envoyé par pollux007
    tu as pas plusieurs main?
    Ben nan... A moins qu'il y en ai un dans JDIC, mais auquel cas, j'y peux pas grand chose...

    J'ai trouvé un petit article situé ici qui dit ceci :
    import org.jdesktop.jdic.desktop.Desktop;
    import org.jdesktop.jdic.desktop.DesktopException;
    import java.net.URL;
    import java.net.MalformedURLException;

    public class OpenWithRegisteredApp {

    public static void main(String[] args) {
    try {
    Desktop.browse(new URL("http://www.java.net/"));
    } catch (MalformedURLException e){
    System.err.println("couldn't connect");
    e.printStackTrace();
    } catch (DesktopException e){
    e.printStackTrace();
    }
    }
    }

    To compile the example program, you need to include the jdic.jar file in your class path. To run the program, you need the native libraries included in a place where the JVM can find it. Alternatively, you can point to the jar file and the native libraries at runtime by using -Djava.library.path= followed by the path to the directory that contains the native libraries. For example, on a Windows machine, if you copy the jar file and dll files into the same directory as the one that contains your program, you can use the following command to run the program:

    java -classpath jdic.jar;. -Djava.library.path=. OpenWithRegisteredApp
    Ca éclaire quelqu'un sur mon problème?...

  10. #10
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    J'ai aussi trouvé ceci :
    Q. Why the Microsoft Platform Software Development Kit (SDK) Update is needed to build the source on Windows platforms?
    A. The SDK Update is needed for below reasons:

    The JDIC API native JNI code on Windows uses a Windows Shell function AssocQueryString to search for and retrieve a file association-related string from the registry. This functions is supported in the Platform SDK Update.
    The JDIC Packager on Windows uses the latest Windows MSI SDK provided by the SDK Update.
    The JDIC Packager on Windows uses a sample MSI template contained in the SDK Update. The sample template is used as a raw MSI template to be modified to generate the final MSI file.
    The JDIC Packager tool jnlp2msi uses two tools provided by the SDK Update: msidb.exe and makecab.exe.
    Moi je fournis le JRE1.4.2 avec mon appli. Est-ce que ça veut dire qu'il faut que je fournisse le SDK carrément?

  11. #11
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    J'ai généré un jar avec ton manifest et l'outil jar du JDK.
    Une fois dans le jar le manifest contient plusieurs ligne pour Class-Path :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Class-Path: . lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/ji
     u.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar lib/j
     dic-0.9.1/jdic.jar

    Citation Envoyé par seiryujay
    Ok, mais il ne faut pas déclarer les dll dans le classpath ou un truc du genre par hasard? Ou les placer dans un répertoire particulier? Si j'ai bien compris, il faut qu'ils soient accessibles par la JVM, et je ne sais pas si c'est le cas dans ma config... Est-ce qu'il existe un moyen de le savoir?
    Il me semble que les DLL sont recherché depuis plusieurs emplacements, dont le répertoire de ton jar principale et le répertoire du jar appellant (jdic.jar). Il ne me semble pas que tu ais quelques chose de spécifique a faire de ce coté là).



    Ton exception indique qu'il ne trouve pas la classe DesktopException, et je ne pense pas qu'elle utilise du code natif donc cela ne doit pas être lié à la DLL...

    Je pense plutôt qu'il n'arrive pas à lire le fichier jar... Vérifie bien le chemin et les droits d'accès aux fichiers (on ne sait jamais).

    Enfin essaye de lancer ton application avec -verbose:class et -verbose:jni pour voir si tu peux en tirer plus d'info...

    a++

  12. #12
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par seiryujay
    Citation Envoyé par pollux007
    tu as pas plusieurs main?
    Ben nan... A moins qu'il y en ai un dans JDIC, mais auquel cas, j'y peux pas grand chose...
    Tu peux avoir autant de main() que tu veux dans ton code cela ne dérange pas...


    Citation Envoyé par seiryujay
    J'ai trouvé un petit article situé ici qui dit ceci :
    ...
    java -classpath jdic.jar;. -Djava.library.path=. OpenWithRegisteredApp
    Ca éclaire quelqu'un sur mon problème?...
    C'est en effet possible d'utiliser cela pour spécifier des chemins différents... mais ce n'est pas neccessaire (en particulier lorsqaue tu utilises un jar).


    J'ai compilé et lancé ce programme en utilisant le même manifest que toi, et cela marche très bien.

    Lorsque je supprime les dll et autres jar j'ai cette erreur :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/jdic/desktop/internal/impl/ServiceManagerStub
    Qui pointe vers une classe dans "stub" spécifique au système...


    Citation Envoyé par seiryujay
    Moi je fournis le JRE1.4.2 avec mon appli. Est-ce que ça veut dire qu'il faut que je fournisse le SDK carrément?
    Il me semble que cela concerne la compilation du code natif de JDIC (il parle du SDK de Microsoft et non pas du JDK)... Tu n'en as donc pas besoin...

    a++

  13. #13
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Voilà ce que j'ai :
    C:\>java -jar -verbose:jni MonAppli.jar
    [Dynamic-linking native method java.lang.StrictMath.pow ... JNI]
    [Dynamic-linking native method java.lang.Float.intBitsToFloat ... JNI]
    [Dynamic-linking native method java.lang.Double.longBitsToDouble ... JNI]
    [Dynamic-linking native method java.lang.Float.floatToIntBits ... JNI]
    [Dynamic-linking native method java.lang.Double.doubleToLongBits ... JNI]
    [Dynamic-linking native method java.lang.Object.registerNatives ... JNI]
    [Registering JNI native method java.lang.Object.hashCode]
    [Registering JNI native method java.lang.Object.wait]
    [Registering JNI native method java.lang.Object.notify]
    [Registering JNI native method java.lang.Object.notifyAll]
    [Registering JNI native method java.lang.Object.clone]
    [Dynamic-linking native method java.lang.System.registerNatives ... JNI]
    [Registering JNI native method java.lang.System.currentTimeMillis]
    [Registering JNI native method java.lang.System.nanoTime]
    [Registering JNI native method java.lang.System.arraycopy]
    [Dynamic-linking native method java.lang.Thread.registerNatives ... JNI]
    [Registering JNI native method java.lang.Thread.start0]
    [Registering JNI native method java.lang.Thread.stop0]
    [Registering JNI native method java.lang.Thread.isAlive]
    [Registering JNI native method java.lang.Thread.suspend0]
    [Registering JNI native method java.lang.Thread.resume0]
    [Registering JNI native method java.lang.Thread.setPriority0]
    [Registering JNI native method java.lang.Thread.yield]
    [Registering JNI native method java.lang.Thread.sleep]
    [Registering JNI native method java.lang.Thread.currentThread]
    [Registering JNI native method java.lang.Thread.countStackFrames]
    [Registering JNI native method java.lang.Thread.interrupt0]
    [Registering JNI native method java.lang.Thread.isInterrupted]
    [Registering JNI native method java.lang.Thread.holdsLock]
    [Registering JNI native method java.lang.Thread.getThreads]
    [Registering JNI native method java.lang.Thread.dumpThreads]
    [Dynamic-linking native method java.lang.Class.registerNatives ... JNI]
    [Registering JNI native method java.lang.Class.getName0]
    [Registering JNI native method java.lang.Class.getSuperclass]
    [Registering JNI native method java.lang.Class.getInterfaces]
    [Registering JNI native method java.lang.Class.getClassLoader0]
    [Registering JNI native method java.lang.Class.isInterface]
    [Registering JNI native method java.lang.Class.getSigners]
    [Registering JNI native method java.lang.Class.setSigners]
    [Registering JNI native method java.lang.Class.isArray]
    [Registering JNI native method java.lang.Class.isPrimitive]
    [Registering JNI native method java.lang.Class.getComponentType]
    [Registering JNI native method java.lang.Class.getModifiers]
    [Registering JNI native method java.lang.Class.getDeclaredFields0]
    [Registering JNI native method java.lang.Class.getDeclaredMethods0]
    [Registering JNI native method java.lang.Class.getDeclaredConstructors0]
    [Registering JNI native method java.lang.Class.getProtectionDomain0]
    [Registering JNI native method java.lang.Class.setProtectionDomain0]
    [Registering JNI native method java.lang.Class.getDeclaredClasses0]
    [Registering JNI native method java.lang.Class.getDeclaringClass]
    [Registering JNI native method java.lang.Class.getGenericSignature]
    [Registering JNI native method java.lang.Class.getRawAnnotations]
    [Registering JNI native method java.lang.Class.getConstantPool]
    [Registering JNI native method java.lang.Class.desiredAssertionStatus0]
    [Registering JNI native method java.lang.Class.getEnclosingMethod0]
    [Dynamic-linking native method java.lang.ClassLoader.registerNatives ... JNI]
    [Registering JNI native method java.lang.ClassLoader.retrieveDirectives]
    [Dynamic-linking native method java.security.AccessController.doPrivileged ...
    NI]
    [Dynamic-linking native method java.io.ObjectStreamClass.initNative ... JNI]
    [Dynamic-linking native method java.lang.Class.getPrimitiveClass ... JNI]
    [Dynamic-linking native method java.security.AccessController.getStackAccessCon
    rolContext ... JNI]
    [Dynamic-linking native method java.security.AccessController.getInheritedAcces
    ControlContext ... JNI]
    [Dynamic-linking native method java.lang.System.initProperties ... JNI]
    [Dynamic-linking native method java.io.FileInputStream.initIDs ... JNI]
    [Dynamic-linking native method java.io.FileDescriptor.initIDs ... JNI]
    [Dynamic-linking native method java.io.FileDescriptor.set ... JNI]
    [Dynamic-linking native method java.io.FileOutputStream.initIDs ... JNI]
    [Dynamic-linking native method sun.misc.Unsafe.registerNatives ... JNI]
    [Registering JNI native method sun.misc.Unsafe.getObject]
    [Registering JNI native method sun.misc.Unsafe.putObject]
    [Registering JNI native method sun.misc.Unsafe.getObjectVolatile]
    [Registering JNI native method sun.misc.Unsafe.putObjectVolatile]
    [Registering JNI native method sun.misc.Unsafe.getBoolean]
    [Registering JNI native method sun.misc.Unsafe.putBoolean]
    [Registering JNI native method sun.misc.Unsafe.getBooleanVolatile]
    [Registering JNI native method sun.misc.Unsafe.putBooleanVolatile]
    [Registering JNI native method sun.misc.Unsafe.getByte]
    [Registering JNI native method sun.misc.Unsafe.putByte]
    [Registering JNI native method sun.misc.Unsafe.getByteVolatile]
    [Registering JNI native method sun.misc.Unsafe.putByteVolatile]
    [Registering JNI native method sun.misc.Unsafe.getShort]
    [Registering JNI native method sun.misc.Unsafe.putShort]
    [Registering JNI native method sun.misc.Unsafe.getShortVolatile]
    [Registering JNI native method sun.misc.Unsafe.putShortVolatile]
    [Registering JNI native method sun.misc.Unsafe.getChar]
    [Registering JNI native method sun.misc.Unsafe.putChar]
    [Registering JNI native method sun.misc.Unsafe.getCharVolatile]
    [Registering JNI native method sun.misc.Unsafe.putCharVolatile]
    [Registering JNI native method sun.misc.Unsafe.getInt]
    [Registering JNI native method sun.misc.Unsafe.putInt]
    [Registering JNI native method sun.misc.Unsafe.getIntVolatile]
    [Registering JNI native method sun.misc.Unsafe.putIntVolatile]
    [Registering JNI native method sun.misc.Unsafe.getLong]
    [Registering JNI native method sun.misc.Unsafe.putLong]
    [Registering JNI native method sun.misc.Unsafe.getLongVolatile]
    [Registering JNI native method sun.misc.Unsafe.putLongVolatile]
    [Registering JNI native method sun.misc.Unsafe.getFloat]
    [Registering JNI native method sun.misc.Unsafe.putFloat]
    [Registering JNI native method sun.misc.Unsafe.getFloatVolatile]
    [Registering JNI native method sun.misc.Unsafe.putFloatVolatile]
    [Registering JNI native method sun.misc.Unsafe.getDouble]
    [Registering JNI native method sun.misc.Unsafe.putDouble]
    [Registering JNI native method sun.misc.Unsafe.getDoubleVolatile]
    [Registering JNI native method sun.misc.Unsafe.putDoubleVolatile]
    [Registering JNI native method sun.misc.Unsafe.getByte]
    [Registering JNI native method sun.misc.Unsafe.putByte]
    [Registering JNI native method sun.misc.Unsafe.getShort]
    [Registering JNI native method sun.misc.Unsafe.putShort]
    [Registering JNI native method sun.misc.Unsafe.getChar]
    [Registering JNI native method sun.misc.Unsafe.putChar]
    [Registering JNI native method sun.misc.Unsafe.getInt]
    [Registering JNI native method sun.misc.Unsafe.putInt]
    [Registering JNI native method sun.misc.Unsafe.getLong]
    [Registering JNI native method sun.misc.Unsafe.putLong]
    [Registering JNI native method sun.misc.Unsafe.getFloat]
    [Registering JNI native method sun.misc.Unsafe.putFloat]
    [Registering JNI native method sun.misc.Unsafe.getDouble]
    [Registering JNI native method sun.misc.Unsafe.putDouble]
    [Registering JNI native method sun.misc.Unsafe.getAddress]
    [Registering JNI native method sun.misc.Unsafe.putAddress]
    [Registering JNI native method sun.misc.Unsafe.allocateMemory]
    [Registering JNI native method sun.misc.Unsafe.reallocateMemory]
    [Registering JNI native method sun.misc.Unsafe.setMemory]
    [Registering JNI native method sun.misc.Unsafe.copyMemory]
    [Registering JNI native method sun.misc.Unsafe.freeMemory]
    [Registering JNI native method sun.misc.Unsafe.objectFieldOffset]
    [Registering JNI native method sun.misc.Unsafe.staticFieldOffset]
    [Registering JNI native method sun.misc.Unsafe.staticFieldBase]
    [Registering JNI native method sun.misc.Unsafe.ensureClassInitialized]
    [Registering JNI native method sun.misc.Unsafe.arrayBaseOffset]
    [Registering JNI native method sun.misc.Unsafe.arrayIndexScale]
    [Registering JNI native method sun.misc.Unsafe.addressSize]
    [Registering JNI native method sun.misc.Unsafe.pageSize]
    [Registering JNI native method sun.misc.Unsafe.defineClass]
    [Registering JNI native method sun.misc.Unsafe.defineClass]
    [Registering JNI native method sun.misc.Unsafe.allocateInstance]
    [Registering JNI native method sun.misc.Unsafe.monitorEnter]
    [Registering JNI native method sun.misc.Unsafe.monitorExit]
    [Registering JNI native method sun.misc.Unsafe.throwException]
    [Registering JNI native method sun.misc.Unsafe.compareAndSwapObject]
    [Registering JNI native method sun.misc.Unsafe.compareAndSwapInt]
    [Registering JNI native method sun.misc.Unsafe.compareAndSwapLong]
    [Registering JNI native method sun.misc.Unsafe.park]
    [Registering JNI native method sun.misc.Unsafe.unpark]
    [Dynamic-linking native method java.lang.String.intern ... JNI]
    [Dynamic-linking native method sun.reflect.Reflection.getCallerClass ... JNI]
    [Dynamic-linking native method java.util.concurrent.atomic.AtomicLong.VMSupport
    CS8 ... JNI]
    [Dynamic-linking native method java.lang.System.setIn0 ... JNI]
    [Dynamic-linking native method java.lang.Object.getClass ... JNI]
    [Dynamic-linking native method java.lang.Class.forName0 ... JNI]
    [Dynamic-linking native method sun.reflect.Reflection.getClassAccessFlags ... J
    I]
    [Dynamic-linking native method sun.reflect.NativeConstructorAccessorImpl.newIns
    ance0 ... JNI]
    [Dynamic-linking native method sun.misc.VM.initialize ... JNI]
    [Dynamic-linking native method java.lang.Runtime.maxMemory ... JNI]
    [Dynamic-linking native method java.lang.System.setOut0 ... JNI]
    [Dynamic-linking native method java.lang.System.setErr0 ... JNI]
    [Dynamic-linking native method java.io.FileSystem.getFileSystem ... JNI]
    [Dynamic-linking native method java.io.Win32FileSystem.initIDs ... JNI]
    [Dynamic-linking native method java.io.WinNTFileSystem.initIDs ... JNI]
    [Dynamic-linking native method java.lang.System.mapLibraryName ... JNI]
    [Dynamic-linking native method java.io.WinNTFileSystem.getBooleanAttributes ...
    JNI]
    [Dynamic-linking native method java.io.WinNTFileSystem.canonicalize0 ... JNI]
    [Dynamic-linking native method java.lang.ClassLoader$NativeLibrary.load ... JNI

    [Dynamic-linking native method sun.misc.Signal.findSignal ... JNI]
    [Dynamic-linking native method sun.misc.Signal.handle0 ... JNI]
    [Dynamic-linking native method java.lang.Compiler.registerNatives ... JNI]
    [Registering JNI native method java.lang.Compiler.compileClass]
    [Registering JNI native method java.lang.Compiler.compileClasses]
    [Registering JNI native method java.lang.Compiler.command]
    [Registering JNI native method java.lang.Compiler.enable]
    [Registering JNI native method java.lang.Compiler.disable]
    [Dynamic-linking native method java.lang.ClassLoader$NativeLibrary.find ... JNI

    [Dynamic-linking native method java.security.AccessController.doPrivileged ...
    NI]
    [Dynamic-linking native method java.io.WinNTFileSystem.list ... JNI]
    [Dynamic-linking native method java.io.WinNTFileSystem.canonicalizeWithPrefix0
    .. JNI]
    [Dynamic-linking native method java.lang.ClassLoader.findLoadedClass0 ... JNI]
    [Dynamic-linking native method java.lang.ClassLoader.findBootstrapClass ... JNI

    [Dynamic-linking native method java.util.zip.ZipFile.initIDs ... JNI]
    [Dynamic-linking native method java.io.WinNTFileSystem.getLastModifiedTime ...
    NI]
    [Dynamic-linking native method java.util.zip.ZipFile.open ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getTotal ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getMappedAddr ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getMappedLen ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getEntry ... JNI]
    [Dynamic-linking native method java.util.zip.ZipEntry.initIDs ... JNI]
    [Dynamic-linking native method java.util.zip.ZipEntry.initFields ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.freeEntry ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getCSize ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getSize ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.getMethod ... JNI]
    [Dynamic-linking native method java.util.zip.Inflater.initIDs ... JNI]
    [Dynamic-linking native method java.util.zip.Inflater.init ... JNI]
    [Dynamic-linking native method java.util.zip.Inflater.inflateBytes ... JNI]
    [Dynamic-linking native method java.util.zip.ZipFile.read ... JNI]
    [Dynamic-linking native method java.lang.Throwable.fillInStackTrace ... JNI]
    [Dynamic-linking native method java.security.AccessController.doPrivileged ...
    NI]
    [Dynamic-linking native method java.util.zip.Inflater.reset ... JNI]
    [Dynamic-linking native method java.lang.Package.getSystemPackage0 ... JNI]
    [Dynamic-linking native method java.util.jar.JarFile.getMetaInfEntryNames ... J
    I]
    [Dynamic-linking native method java.io.FileInputStream.open ... JNI]
    [Dynamic-linking native method java.io.FileInputStream.readBytes ... JNI]
    [Dynamic-linking native method java.io.FileInputStream.available ... JNI]
    [Dynamic-linking native method java.lang.Class.isInstance ... JNI]
    [Dynamic-linking native method java.io.FileInputStream.close0 ... JNI]
    [Dynamic-linking native method java.lang.StrictMath.floor ... JNI]
    [Dynamic-linking native method java.lang.ClassLoader.defineClass1 ... JNI]
    [Dynamic-linking native method java.lang.ref.Finalizer.invokeFinalizeMethod ...
    JNI]
    Exception in thread "main" [Dynamic-linking native method java.io.FileOutputStr
    am.writeBytes ... JNI]
    java.lang.NoClassDefFoundError: org/jdesktop/jdic/desktop/DesktopException
    [Dynamic-linking native method java.lang.Throwable.getStackTraceDepth ... JNI]
    Si ça t'éclaire...

  14. #14
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Et avec -verbose:class, j'ai tellement de trucs que ça rentre même pas en entier dans la console :
    [Loaded sun.security.action.GetPropertyAction from shared objects file]
    [Loaded java.nio.charset.Charset from shared objects file]
    [Loaded java.nio.charset.spi.CharsetProvider from shared objects file]
    [Loaded sun.nio.cs.FastCharsetProvider from shared objects file]
    [Loaded sun.nio.cs.StandardCharsets from shared objects file]
    [Loaded sun.util.PreHashedMap from shared objects file]
    [Loaded sun.nio.cs.StandardCharsets$Aliases from shared objects file]
    [Loaded sun.nio.cs.StandardCharsets$Classes from shared objects file]
    [Loaded sun.nio.cs.StandardCharsets$Cache from shared objects file]
    [Loaded java.lang.ThreadLocal from shared objects file]
    [Loaded java.lang.StringBuilder from shared objects file]
    [Loaded sun.nio.cs.HistoricallyNamedCharset from shared objects file]
    [Loaded sun.nio.cs.MS1252 from shared objects file]
    [Loaded java.lang.Class$1 from shared objects file]
    [Loaded sun.reflect.ReflectionFactory$1 from shared objects file]
    [Loaded sun.reflect.NativeConstructorAccessorImpl from shared objects file]
    [Loaded sun.reflect.DelegatingConstructorAccessorImpl from shared objects file]
    [Loaded sun.misc.VM from shared objects file]
    [Loaded sun.nio.cs.StreamEncoder$CharsetSE from shared objects file]
    [Loaded java.nio.charset.CharsetEncoder from shared objects file]
    [Loaded sun.nio.cs.SingleByteEncoder from shared objects file]
    [Loaded sun.nio.cs.MS1252$Encoder from shared objects file]
    [Loaded java.nio.charset.CodingErrorAction from shared objects file]
    [Loaded java.nio.charset.CharsetDecoder from shared objects file]
    [Loaded sun.nio.cs.SingleByteDecoder from shared objects file]
    [Loaded sun.nio.cs.MS1252$Decoder from shared objects file]
    [Loaded java.nio.ByteBuffer from shared objects file]
    [Loaded java.nio.HeapByteBuffer from shared objects file]
    [Loaded java.nio.Bits from shared objects file]
    [Loaded java.lang.Runtime from shared objects file]
    [Loaded java.nio.ByteOrder from shared objects file]
    [Loaded java.lang.Readable from shared objects file]
    [Loaded java.nio.CharBuffer from shared objects file]
    [Loaded java.nio.HeapCharBuffer from shared objects file]
    [Loaded java.nio.charset.CoderResult from shared objects file]
    [Loaded java.nio.charset.CoderResult$Cache from shared objects file]
    [Loaded java.nio.charset.CoderResult$1 from shared objects file]
    [Loaded java.nio.charset.CoderResult$2 from shared objects file]
    [Loaded sun.nio.cs.Surrogate$Parser from shared objects file]
    [Loaded sun.nio.cs.Surrogate from shared objects file]
    [Loaded java.io.BufferedWriter from shared objects file]
    [Loaded java.io.File from shared objects file]
    [Loaded java.io.FileSystem from shared objects file]
    [Loaded java.io.Win32FileSystem from shared objects file]
    [Loaded java.io.WinNTFileSystem from shared objects file]
    [Loaded java.io.ExpiringCache from shared objects file]
    [Loaded java.util.LinkedHashMap from shared objects file]
    [Loaded java.io.ExpiringCache$1 from shared objects file]
    [Loaded java.util.LinkedHashMap$Entry from shared objects file]
    [Loaded java.lang.ClassLoader$3 from shared objects file]
    [Loaded java.io.ExpiringCache$Entry from shared objects file]
    [Loaded java.lang.ClassLoader$NativeLibrary from shared objects file]
    [Loaded java.lang.Terminator from shared objects file]
    [Loaded sun.misc.SignalHandler from shared objects file]
    [Loaded java.lang.Terminator$1 from shared objects file]
    [Loaded sun.misc.Signal from shared objects file]
    [Loaded sun.misc.NativeSignalHandler from shared objects file]
    [Loaded sun.misc.JavaLangAccess from shared objects file]
    [Loaded java.lang.System$2 from shared objects file]
    [Loaded sun.misc.SharedSecrets from shared objects file]
    [Loaded java.lang.NullPointerException from shared objects file]
    [Loaded java.lang.ArithmeticException from shared objects file]
    [Loaded java.lang.Compiler from shared objects file]
    [Loaded java.lang.Compiler$1 from shared objects file]
    [Loaded sun.misc.Launcher from shared objects file]
    [Loaded java.net.URLStreamHandlerFactory from shared objects file]
    [Loaded sun.misc.Launcher$Factory from shared objects file]
    [Loaded java.security.SecureClassLoader from shared objects file]
    [Loaded java.net.URLClassLoader from shared objects file]
    [Loaded sun.misc.Launcher$ExtClassLoader from shared objects file]
    [Loaded sun.security.util.Debug from shared objects file]
    [Loaded java.util.StringTokenizer from shared objects file]
    [Loaded java.security.PrivilegedExceptionAction from shared objects file]
    [Loaded sun.misc.Launcher$ExtClassLoader$1 from shared objects file]
    [Loaded sun.net.www.ParseUtil from shared objects file]
    [Loaded java.util.BitSet from shared objects file]
    [Loaded java.net.URL from shared objects file]
    [Loaded java.util.Locale from shared objects file]
    [Loaded java.lang.CharacterDataLatin1 from shared objects file]
    [Loaded java.net.Parts from shared objects file]
    [Loaded java.net.URLStreamHandler from shared objects file]
    [Loaded sun.net.www.protocol.file.Handler from shared objects file]
    [Loaded java.util.HashSet from shared objects file]
    [Loaded sun.misc.URLClassPath from shared objects file]
    [Loaded java.util.ArrayList from shared objects file]
    [Loaded sun.net.www.protocol.jar.Handler from shared objects file]
    [Loaded sun.misc.Launcher$AppClassLoader from shared objects file]
    [Loaded sun.misc.Launcher$AppClassLoader$1 from shared objects file]
    [Loaded java.lang.SystemClassLoaderAction from shared objects file]
    [Loaded java.util.zip.ZipConstants from shared objects file]
    [Loaded java.util.zip.ZipFile from shared objects file]
    [Loaded java.util.jar.JarFile from shared objects file]
    [Loaded sun.misc.JavaUtilJarAccess from shared objects file]
    [Loaded java.util.jar.JavaUtilJarAccessImpl from shared objects file]
    [Loaded java.lang.StringCoding from shared objects file]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap from shared objects file]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from shared objects file]
    [Loaded java.lang.StringCoding$StringDecoder from shared objects file]
    [Loaded java.lang.StringCoding$CharsetSD from shared objects file]
    [Loaded java.util.zip.ZipEntry from shared objects file]
    [Loaded java.util.jar.JarEntry from shared objects file]
    [Loaded java.util.jar.JarFile$JarFileEntry from shared objects file]
    [Loaded java.io.DataInput from shared objects file]
    [Loaded java.io.DataInputStream from shared objects file]
    [Loaded java.util.zip.ZipFile$ZipFileInputStream from shared objects file]
    [Loaded java.util.zip.InflaterInputStream from shared objects file]
    [Loaded java.util.zip.ZipFile$2 from shared objects file]
    [Loaded java.util.zip.Inflater from shared objects file]
    [Loaded java.util.jar.Manifest from shared objects file]
    [Loaded java.io.ByteArrayInputStream from shared objects file]
    [Loaded java.util.jar.Attributes from shared objects file]
    [Loaded java.util.jar.Manifest$FastInputStream from shared objects file]
    [Loaded sun.nio.cs.UTF_8 from shared objects file]
    [Loaded sun.nio.cs.UTF_8$Decoder from shared objects file]
    [Loaded sun.nio.cs.Surrogate$Generator from shared objects file]
    [Loaded java.util.jar.Attributes$Name from shared objects file]
    [Loaded sun.misc.ASCIICaseInsensitiveComparator from shared objects file]
    [Loaded java.util.jar.JarVerifier from shared objects file]
    [Loaded java.io.ByteArrayOutputStream from shared objects file]
    [Loaded java.net.URLClassLoader$1 from shared objects file]
    [Loaded sun.misc.URLClassPath$3 from shared objects file]
    [Loaded sun.misc.URLClassPath$Loader from shared objects file]
    [Loaded sun.misc.URLClassPath$JarLoader from shared objects file]
    [Loaded sun.misc.FileURLMapper from shared objects file]
    [Loaded sun.misc.JarIndex from shared objects file]
    [Loaded sun.misc.ExtensionDependency from shared objects file]
    [Loaded java.lang.Math from shared objects file]
    [Loaded java.security.PrivilegedActionException from shared objects file]
    [Loaded sun.misc.Resource from shared objects file]
    [Loaded sun.misc.URLClassPath$JarLoader$1 from shared objects file]
    [Loaded java.lang.Package from shared objects file]
    [Loaded sun.security.util.ManifestEntryVerifier from shared objects file]
    [Loaded java.security.Provider from shared objects file]
    [Loaded sun.security.provider.Sun from shared objects file]
    [Loaded java.security.Provider$ServiceKey from shared objects file]
    [Loaded java.security.Provider$EngineDescription from C:\Program Files\Java\jre1
    .5.0_06\lib\rt.jar]
    [Loaded sun.security.provider.Sun$1 from shared objects file]
    [Loaded java.security.Security from shared objects file]
    [Loaded java.security.Security$1 from shared objects file]
    [Loaded java.util.Properties$LineReader from shared objects file]
    [Loaded java.util.concurrent.ConcurrentMap from shared objects file]
    [Loaded java.util.concurrent.ConcurrentHashMap from shared objects file]
    [Loaded java.util.concurrent.locks.Lock from shared objects file]
    [Loaded java.util.concurrent.locks.ReentrantLock from shared objects file]
    [Loaded java.util.concurrent.ConcurrentHashMap$Segment from shared objects file]

    [Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer from shared object
    s file]
    [Loaded java.util.concurrent.locks.ReentrantLock$Sync from shared objects file]
    [Loaded java.util.concurrent.locks.ReentrantLock$NonfairSync from shared objects
    file]
    [Loaded java.util.concurrent.locks.AbstractQueuedSynchronizer$Node from shared o
    bjects file]
    [Loaded java.util.concurrent.ConcurrentHashMap$HashEntry from shared objects fil
    e]
    [Loaded sun.misc.FloatingDecimal from shared objects file]
    [Loaded sun.misc.FloatingDecimal$1 from shared objects file]
    [Loaded java.util.regex.Pattern from shared objects file]
    [Loaded java.util.regex.Pattern$Node from shared objects file]
    [Loaded java.util.regex.Pattern$LastNode from shared objects file]
    [Loaded java.util.regex.Pattern$GroupHead from shared objects file]
    [Loaded java.util.regex.Pattern$GroupTail from shared objects file]
    [Loaded java.util.regex.Pattern$BitClass from shared objects file]
    [Loaded java.util.regex.Pattern$Ques from shared objects file]
    [Loaded java.util.regex.Pattern$Dummy from shared objects file]
    [Loaded java.util.regex.Pattern$Branch from shared objects file]
    [Loaded java.util.regex.Pattern$Single from shared objects file]
    [Loaded java.util.regex.Pattern$categoryNames from shared objects file]
    [Loaded java.util.regex.Pattern$Category from shared objects file]
    [Loaded java.util.regex.Pattern$Range from shared objects file]
    [Loaded java.util.regex.Pattern$All from shared objects file]
    [Loaded java.util.regex.Pattern$Ctype from shared objects file]
    [Loaded java.util.regex.Pattern$JavaTypeClass from shared objects file]
    [Loaded java.util.regex.Pattern$JavaLowerCase from shared objects file]
    [Loaded java.util.regex.Pattern$JavaUpperCase from shared objects file]
    [Loaded java.util.regex.Pattern$JavaTitleCase from shared objects file]
    [Loaded java.util.regex.Pattern$JavaDigit from shared objects file]
    [Loaded java.util.regex.Pattern$JavaDefined from shared objects file]
    [Loaded java.util.regex.Pattern$JavaLetter from shared objects file]
    [Loaded java.util.regex.Pattern$JavaLetterOrDigit from shared objects file]
    [Loaded java.util.regex.Pattern$JavaJavaIdentifierStart from shared objects file
    ]
    [Loaded java.util.regex.Pattern$JavaJavaIdentifierPart from shared objects file]

    [Loaded java.util.regex.Pattern$JavaUnicodeIdentifierStart from shared objects f
    ile]
    [Loaded java.util.regex.Pattern$JavaUnicodeIdentifierPart from shared objects fi
    le]
    [Loaded java.util.regex.Pattern$JavaIdentifierIgnorable from shared objects file
    ]
    [Loaded java.util.regex.Pattern$JavaSpaceChar from shared objects file]
    [Loaded java.util.regex.Pattern$JavaWhitespace from shared objects file]
    [Loaded java.util.regex.Pattern$JavaISOControl from shared objects file]
    [Loaded java.util.regex.Pattern$JavaMirrored from shared objects file]
    [Loaded java.util.regex.Pattern$Curly from shared objects file]
    [Loaded java.util.regex.Pattern$Slice from shared objects file]
    [Loaded java.util.regex.Pattern$Begin from shared objects file]
    [Loaded java.util.regex.Pattern$First from shared objects file]
    [Loaded java.util.regex.Pattern$Start from shared objects file]
    [Loaded java.util.regex.Pattern$TreeInfo from shared objects file]
    [Loaded sun.security.provider.NativePRNG from shared objects file]
    [Loaded sun.misc.CharacterDecoder from shared objects file]
    [Loaded sun.misc.BASE64Decoder from shared objects file]
    [Loaded sun.security.util.SignatureFileVerifier from shared objects file]
    [Loaded sun.nio.ByteBuffered from shared objects file]
    [Loaded java.security.CodeSource from shared objects file]
    [Loaded java.security.PermissionCollection from shared objects file]
    [Loaded java.security.Permissions from shared objects file]
    [Loaded java.net.URLConnection from shared objects file]
    [Loaded sun.net.www.URLConnection from shared objects file]
    [Loaded sun.net.www.protocol.file.FileURLConnection from shared objects file]
    [Loaded java.net.ContentHandler from shared objects file]
    [Loaded java.net.UnknownContentHandler from shared objects file]
    [Loaded sun.net.www.MessageHeader from shared objects file]
    [Loaded java.io.FilePermission from shared objects file]
    [Loaded java.io.FilePermission$1 from shared objects file]
    [Loaded java.io.FilePermissionCollection from shared objects file]
    [Loaded java.security.AllPermission from shared objects file]
    [Loaded java.security.UnresolvedPermission from shared objects file]
    [Loaded java.security.BasicPermissionCollection from shared objects file]
    [Loaded java.security.Principal from shared objects file]
    [Loaded java.security.cert.Certificate from shared objects file]
    [Loaded cimpa.myapp.awt.event.PaletteGlissanteListener from file:/C:/NDTKi
    t.jar]
    [Loaded java.util.EventListener from shared objects file]
    [Loaded javax.swing.event.InternalFrameListener from C:\Program Files\Java\jre1.
    5.0_06\lib\rt.jar]
    [Loaded cimpa.myapp.awt.event.ChangeTbButtonStateListener from file:/C:/ND
    TKit.jar]
    [Loaded java.awt.event.ItemListener from shared objects file]
    [Loaded cimpa.myapp.awt.event.StatisticsTableListener from file:/C:/MyApp
    .jar]
    [Loaded cimpa.myapp.awt.event.DefectTableListener from file:/C:/MyApp.jar
    ]
    [Loaded cimpa.smartMyApp.awt.event.RuleMoveListener from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.event.IFIListener from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.event.ImageCanvasMouseListener from file:/C:/NDTKi
    t.jar]
    [Loaded cimpa.myapp.awt.event.ImageCanvasROIListener from file:/C:/MyApp.
    jar]
    [Loaded cimpa.myapp.awt.event.ZoomImageCanvasListener from file:/C:/MyApp
    .jar]
    [Loaded java.awt.print.Printable from C:\Program Files\Java\jre1.5.0_06\lib\rt.j
    ar]
    [Loaded java.awt.event.WindowListener from shared objects file]
    [Loaded java.awt.image.ImageObserver from shared objects file]
    [Loaded java.awt.MenuContainer from shared objects file]
    [Loaded java.awt.Component from shared objects file]
    [Loaded java.awt.Container from shared objects file]
    [Loaded javax.accessibility.Accessible from shared objects file]
    [Loaded java.awt.Window from shared objects file]
    [Loaded java.awt.Frame from shared objects file]
    [Loaded javax.swing.WindowConstants from shared objects file]
    [Loaded javax.swing.RootPaneContainer from shared objects file]
    [Loaded javax.swing.JFrame from shared objects file]
    [Loaded cimpa.myapp.awt.MyApp from file:/C:/MyApp.jar]
    [Loaded java.awt.Graphics from shared objects file]
    [Loaded java.awt.Graphics2D from shared objects file]
    [Loaded cimpa.myapp.awt.event.ImageCanvasEvent from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.event.ZoomImageCanvasEvent from file:/C:/MyApp.ja
    r]
    [Loaded cimpa.myapp.awt.MyApp$96 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.event.ImageCanvasMouseEvent from file:/C:/MyApp.j
    ar]
    [Loaded java.beans.PropertyVetoException from shared objects file]
    [Loaded javax.swing.JComponent from shared objects file]
    [Loaded javax.swing.JInternalFrame from shared objects file]
    [Loaded cimpa.myapp.awt.event.ImageCanvasMouseMenuListener from file:/C:/N
    DTKit.jar]
    [Loaded javax.swing.event.ChangeListener from shared objects file]
    [Loaded cimpa.myapp.awt.InternalFrameImage from file:/C:/MyApp.jar]
    [Loaded javax.swing.SwingConstants from shared objects file]
    [Loaded javax.swing.JTabbedPane from shared objects file]
    [Loaded sun.misc.Cleaner from shared objects file]
    [Loaded java.lang.Enum from shared objects file]
    [Loaded java.awt.event.MouseListener from shared objects file]
    [Loaded cimpa.myapp.awt.JTabbedPaneWithCloseIcons from file:/C:/MyApp.jar
    ]
    [Loaded cimpa.myapp.automatic_defect_detection.DefectTabbedPane from file:
    /C:/MyApp.jar]
    [Loaded javax.swing.JPanel from shared objects file]
    [Loaded cimpa.myapp.automatic_defect_detection.DefectTable from file:/C:/N
    DTKit.jar]
    [Loaded java.awt.event.ActionListener from shared objects file]
    [Loaded cimpa.myapp.awt.MyApp$94 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.MyApp$95 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.MyApp$92 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.MyApp$91 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.awt.MyApp$90 from file:/C:/MyApp.jar]
    [Loaded cimpa.myapp.parser.Expression from file:/C:/MyApp.jar]
    [Loaded sun.misc.URLClassPath$FileLoader from shared objects file]
    [Loaded java.io.IOException from shared objects file]
    [Loaded java.io.FileNotFoundException from shared objects file]
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/jdic/des
    ktop/DesktopException
    [Loaded java.lang.Shutdown from shared objects file]
    [Loaded java.lang.Shutdown$Lock from shared objects file]

  15. #15
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Je ne vois rien de particulier... C'est vraiment bizarre...

    Tu as vérifié que le manifest à l'intérieur du jar n'a pas de ligne de + de 80 caractère ? Et les droits sur les fichiers jar de jdic ?

    Sinon je ne vois pas du tout...

    a++

  16. #16
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Citation Envoyé par adiGuba
    Je ne vois rien de particulier... C'est vraiment bizarre...

    Tu as vérifié que le manifest à l'intérieur du jar n'a pas de ligne de + de 80 caractère ? Et les droits sur les fichiers jar de jdic ?

    Sinon je ne vois pas du tout...

    a++
    Voilà la gueule de mon Manifest dans le JAR :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Manifest-Version: 1.0
    Main-Class: cimpa.myapp.awt.MyApp
    Class-Path: lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/jiu.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar lib/jdic-0.9.1/jdic.jar
    Il y a effectivement des lignes de plus de 80 caractères, mais comme je te le disais, dans les précédentes versions, il avait déjà des lignes de plus de 80 caractères et ça marchait très bien...
    En plus, je ne sais pas comment le formatter à la mano...

    Pour les droits d'accés : tout est autoriser (contrôle total, lecture, écriture, et tout le toin toin...)

    Le pire c'est que je ne suis pas le seul à qui ça arrive, vu que j'ai trouvé plein de post sur plein de forums, mais jamais de réponse... Je ne comprends pas...

    Juste en passant. Est-ce que d'après toi, je dois inclure les "sous-jar" (ceux nommé "jdic_stub.jar" et présents dans les sous-dossiers de l'API JDIC) dans le MANIFEST et dans le classpath?

  17. #17
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Questions supplémentaires :

    - le fait que j'ai placé l'API JDIC dans mon workspace peut-il être la source du problème? Enfin, est-ce que je dois le mettre dans un dossier particulier, appartenant à une variable d'environnement précise?

    - comment faire en sorte que mon MANIFEST n'ait pas de lignes de plus de 80 caractères? Qu'elle est la syntaxe pour le forcer à aller à la ligne?...

    Merci.

  18. #18
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    Citation Envoyé par seiryujay
    Voilà la gueule de mon Manifest dans le JAR :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Manifest-Version: 1.0
    Main-Class: cimpa.myapp.awt.MyApp
    Class-Path: lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/jiu.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar lib/jdic-0.9.1/jdic.jar
    Il y a effectivement des lignes de plus de 80 caractères, mais comme je te le disais, dans les précédentes versions, il avait déjà des lignes de plus de 80 caractères et ça marchait très bien...
    En plus, je ne sais pas comment le formatter à la mano...
    Avec quel outil tu crées ton jar ?
    Moi avec l'outil jar du JDK il me formate automatiquement le Manifest (découpé exactement comme cela) :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    Class-Path: . lib/castor-0.9.5.4-xml.jar lib/xerces-J_1.4.0.jar lib/ji
     u.jar lib/poi-2.5.1-final-20040804.jar lib/numericalMethods.jar lib/j
     dic-0.9.1/jdic.jar

    Citation Envoyé par seiryujay
    Juste en passant. Est-ce que d'après toi, je dois inclure les "sous-jar" (ceux nommé "jdic_stub.jar" et présents dans les sous-dossiers de l'API JDIC) dans le MANIFEST et dans le classpath?
    Non.
    Ces Jar sont chargé automatiquement selon le système d'exploitation. Par contre il faut bien sûr conserver la même arborescence...


    Essaye de créer ton jar à la main :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    jar cvfm archive.jar manifest repertoire_et_classe...
    a++

  19. #19
    Membre éclairé
    Avatar de seiryujay
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    950
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 950
    Points : 722
    Points
    722
    Par défaut
    Citation Envoyé par adiGuba
    Avec quel outil tu crées ton jar ?
    Je le crée avec Eclipse...

    Citation Envoyé par adiGuba
    Essaye de créer ton jar à la main :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    jar cvfm archive.jar manifest repertoire_et_classe...
    Génération avec jar réussie, mais le problème persiste... Je comprends pas...

  20. #20
    Expert éminent sénior
    Avatar de adiGuba
    Homme Profil pro
    Développeur Java/Web
    Inscrit en
    Avril 2002
    Messages
    13 938
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Java/Web
    Secteur : Transports

    Informations forums :
    Inscription : Avril 2002
    Messages : 13 938
    Points : 23 190
    Points
    23 190
    Billets dans le blog
    1
    Par défaut
    A tout hasard... Que te donne la commande suivante :
    a++

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Could not find main class
    Par firgon dans le forum Débuter avec Java
    Réponses: 8
    Dernier message: 21/10/2008, 15h48
  2. Réponses: 7
    Dernier message: 17/03/2008, 08h35
  3. JVM : Could Not Find Main Class
    Par Mythrandil dans le forum Langage
    Réponses: 6
    Dernier message: 06/09/2007, 12h13
  4. Réponses: 5
    Dernier message: 01/08/2007, 15h07
  5. Réponses: 6
    Dernier message: 17/04/2005, 10h58

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