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

Environnement de Développement Intégré (EDI) Java Discussion :

Problèmes avec GCJ


Sujet :

Environnement de Développement Intégré (EDI) Java

  1. #1
    Membre actif Avatar de Belegkarnil
    Inscrit en
    Juin 2005
    Messages
    289
    Détails du profil
    Informations personnelles :
    Âge : 36

    Informations forums :
    Inscription : Juin 2005
    Messages : 289
    Points : 205
    Points
    205
    Par défaut Problèmes avec GCJ
    Bonjours, J'ai un fichier contenant des class. Mon fichier *.java se nomme MonProg.java

    Je compile le *.java avec gcj de la manière suivante :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    C:\MinGW\bin\gcj.exe --encoding=ISO-8859-1  -o MonProg "C:\MinGW\Api\MonProg.java" -O --main=MonProg
    Je suis sous windows donc, et quand j'execute le programme, j'obtient ces erreurs :

    C:\MinGW\Api>MonProg.exe
    UIDefaults.getUIError: failed to locate UI class:JPanel
    created the glasspane: javax.swing.JPanel[JPanel]
    Exception in thread "main" java.awt.AWTError: Cannot load AWT toolkit:
    at _ffi_prep_cif (d:\develop\GCC-3.4.5\gcc-3.4.5\libffi\src\prep_cif.c:160)
    Caused by: java.lang.ClassNotFoundException:
    at 0x004301ee (C:\MinGW\Api\natClass.cc)
    at 0x004306e2 (C:\MinGW\Api\natClass.cc)
    at 0x00430715 (C:\MinGW\Api\natClass.cc)
    at 0x0040efdb (C:\MinGW\Api\natClass.cc)
    at 0x00456ca1 (C:\MinGW\Api\natClass.cc)
    at 0x00456cda (C:\MinGW\Api\natClass.cc)
    at 0x00428edf (C:\MinGW\Api\natClass.cc)
    at 0x00428ff8 (C:\MinGW\Api\natClass.cc)
    at 0x004710cd (C:\MinGW\Api\natClass.cc)
    at 0x0041f7b3 (C:\MinGW\Api\natClass.cc)
    at 0x0041785b (C:\MinGW\Api\natClass.cc)
    at 0x0046b9d2 (C:\MinGW\Api\natClass.cc)
    at 0x004143a9 (C:\MinGW\Api\natClass.cc)
    at 0x0046b4fd (C:\MinGW\Api\natClass.cc)
    at 0x0046b47e (C:\MinGW\Api\natClass.cc)
    at 0x0046b967 (C:\MinGW\Api\natClass.cc)
    at 0x00410342 (C:\MinGW\Api\natClass.cc)
    at 0x0040ff3f (C:\MinGW\Api\natClass.cc)
    at 0x004103e7 (C:\MinGW\Api\natClass.cc)
    at 0x0041046e (C:\MinGW\Api\natClass.cc)
    at 0x00401a60 (C:\MinGW\Api\natClass.cc)
    at 0x0040261c (C:\MinGW\Api\natClass.cc)
    at 0x00402bf5 (C:\MinGW\Api\natClass.cc)
    at 0x004aaea1 (C:\MinGW\Api\natClass.cc)
    at 0x0042df0e (C:\MinGW\Api\natClass.cc)
    at 0x00436690 (C:\MinGW\Api\natClass.cc)
    at 0x00405607 (C:\MinGW\Api\natClass.cc)
    at 0x004056d7 (C:\MinGW\Api\natClass.cc)
    at 0x00401308 (C:\MinGW\Api\natClass.cc)
    at 0x00401229 (C:\MinGW\Api\natClass.cc)
    at 0x00401254 (C:\MinGW\Api\natClass.cc)
    at 0x7c816d4b (Unknown Source)
    Et là, je ne comprend plus rien pouvez-vous m'aider? Merci

  2. #2
    Expert éminent sénior
    Avatar de sinok
    Profil pro
    Inscrit en
    Août 2004
    Messages
    8 765
    Détails du profil
    Informations personnelles :
    Âge : 43
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Août 2004
    Messages : 8 765
    Points : 12 977
    Points
    12 977
    Par défaut
    C'est la deuxième fois que tu as ce genre de problèmes problème, je te redirige vers ma première réponse:

    http://www.developpez.net/forums/sho...d.php?t=204682

    GCJ n'a pas autant avancé en trois semaines

    Seul moyen pour toi pour faire en sorte que ça marche: utiliser SwingWT et fournir le jar de SWT correspondant au système visé...
    Hey, this is mine. That's mine. All this is mine. I'm claiming all this as mine. Except that bit. I don't want that bit. But all the rest of this is mine. Hey, this has been a really good day. I've eaten five times, I've slept six times, and I've made a lot of things mine. Tomorrow, I'm gonna see if I can't have sex with something.

  3. #3
    Membre actif Avatar de Belegkarnil
    Inscrit en
    Juin 2005
    Messages
    289
    Détails du profil
    Informations personnelles :
    Âge : 36

    Informations forums :
    Inscription : Juin 2005
    Messages : 289
    Points : 205
    Points
    205
    Par défaut
    Cette fois, ca compile, je n'utilise pas des class qui ne sont pas encore "traduite". En plus, il y a le "GNU Classpath" pour "ajouter" des class mais je ne sais pas comment il faut faire.

Discussions similaires

  1. VC++ Direct3D8, problème avec LPD3DXFONT et LPD3DTEXTURE8
    Par Magus (Dave) dans le forum DirectX
    Réponses: 3
    Dernier message: 03/08/2002, 11h10
  2. Problème avec [b]struct[/b]
    Par Bouziane Abderraouf dans le forum CORBA
    Réponses: 2
    Dernier message: 17/07/2002, 10h25
  3. Problème avec le type 'Corba::Any_out'
    Par Steven dans le forum CORBA
    Réponses: 2
    Dernier message: 14/07/2002, 18h48
  4. Problème avec la mémoire virtuelle
    Par Anonymous dans le forum CORBA
    Réponses: 13
    Dernier message: 16/04/2002, 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