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

Eclipse Java Discussion :

[JOnAS][JOPE] impossible de compiler un bean


Sujet :

Eclipse Java

  1. #1
    Membre averti

    Profil pro
    Enseignant
    Inscrit en
    Juillet 2003
    Messages
    296
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations professionnelles :
    Activité : Enseignant

    Informations forums :
    Inscription : Juillet 2003
    Messages : 296
    Points : 441
    Points
    441
    Par défaut [JOnAS][JOPE] impossible de compiler un bean
    Bonjour, j'ai un problème assez curieux. Depuis ce matin, il m'est impossible de compiler mes EJB...
    J'ai le message d'erreur suivant :
    [genic] GenIC for JOnAS 4.3.4: 'MyBeanEJB' generation ...
    [genic] No javac command was found at 'C:\Java\jre1.5.0_01\..\bin\javac'. Check that you are using a JDK and not a JRE.
    [genic] 2005-03-24 12:01:10,885 : Cmd.run : exception
    [genic] java.io.IOException: CreateProcess: C:\Java\jre1.5.0_01\..\bin\javac -classpath C:\JOnAS\lib\jonas.jar;C:\JOnAS\lib\common\jonathan\jonathan.jar;C:\JOnAS\lib\common\jonathan\kilim.jar;C:\DOCUME~1\cvc\LOCALS~1\Temp\genic47947.tmp;C:\DOCUME~1\cvc\LOCALS~1\Temp\genic47947.tmp;C:\eclipse\workspace\test\output\ejbjars\mybean-generic.jar;;C:\JOnAS\lib\commons\j2ee\activation.jar;C:\JOnAS\lib\commons\j2ee\connector-1_5.jar;C:\JOnAS\lib\commons\j2ee\ejb-2_1-api.jar;C:\JOnAS\lib\commons\j2ee\jacc-1_0.jar;C:\JOnAS\lib\commons\j2ee\javax77.jar;C:\JOnAS\lib\commons\j2ee\jaxb-api.jar;C:\JOnAS\lib\commons\j2ee\jaxr-api.jar;C:\JOnAS\lib\commons\j2ee\jaxrpc.jar;C:\JOnAS\lib\commons\j2ee\jms.jar;C:\JOnAS\lib\commons\j2ee\jsp-2_0.jar;C:\JOnAS\lib\commons\j2ee\jsr88-api.jar;C:\JOnAS\lib\commons\j2ee\jta-spec1_0_1.jar;C:\JOnAS\lib\commons\j2ee\jts-spec1_0.jar;C:\JOnAS\lib\commons\j2ee\mail.jar;C:\JOnAS\lib\commons\j2ee\saaj.jar;C:\JOnAS\lib\commons\j2ee\servlet-2_4.jar;C:\JOnAS\lib\commons\j2ee\wsdl4j.jar;C:\JOnAS\lib\commons\jonas\axis\axis.jar;C:\?
    [genic] at java.lang.ProcessImpl.create(Native Method)
    [genic] at java.lang.ProcessImpl.<init>(Unknown Source)
    [genic] at java.lang.ProcessImpl.start(Unknown Source)
    [genic] at java.lang.ProcessBuilder.start(Unknown Source)
    [genic] at java.lang.Runtime.exec(Unknown Source)
    [genic] at java.lang.Runtime.exec(Unknown Source)
    [genic] at org.objectweb.common.Cmd.run(Cmd.java:147)
    [genic] at org.objectweb.jonas_ejb.genic.GenIC.compilClasses(GenIC.java:719)
    [genic] at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:430)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [genic] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [genic] at java.lang.reflect.Method.invoke(Unknown Source)
    [genic] at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
    [genic] GenIC fatal error:
    [genic] Failed when compiling the generated classes via java compiler
    [genic] Exception during execution of org.objectweb.jonas_ejb.genic.GenIC : Failed when compiling the generated classes via java compiler
    [genic] java.lang.RuntimeException: Failed when compiling the generated classes via java compiler
    [genic] at org.objectweb.jonas_ejb.genic.GenIC.fatalError(GenIC.java:1172)
    [genic] at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:446)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [genic] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [genic] at java.lang.reflect.Method.invoke(Unknown Source)
    [genic] at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:97)
    Comment puis-je lui indiquer le chemin exact vers mon jdk ?

    J'ai essayé la réinstallation de eclipse, celle de jonas, mais le problème reste le même...
    Bizarrement, eclipse sait compiler sans problèmes les autres projets java.

    Merci,

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Mars 2004
    Messages
    76
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2004
    Messages : 76
    Points : 83
    Points
    83
    Par défaut
    Dans Windows->Preferences

    Tu vas dans la config de ton jdk : JRE installé
    le nom doit etre par exemple : j2sdk1.4.2.07 et le chemin doit etre par exemple : C:\j2sdk1.4.2.07\jre
    En fait, il confond le jdk et le jre

    De plus , dans le paramétrage de la JVM, tu fais :
    Ajouter aux paramètres de la jvm
    -Djava.naming.factory.initial=org.objectweb.carol.jndi.spi.MultiOrbInitialContextFactory
    Classpath :
    Ajout de tools.jar
    Boot :
    rt.jar


    Essaye comme ca, mais chez moi ca marche

Discussions similaires

  1. [struts] Compiler un bean avec netBeans
    Par Invité dans le forum NetBeans
    Réponses: 2
    Dernier message: 29/12/2005, 17h15
  2. Impossible de compiler un projet avec #include <glib.h>
    Par canard75 dans le forum Autres éditeurs
    Réponses: 1
    Dernier message: 14/12/2005, 18h18
  3. Jbuilder2006 impossible de compiler mon projet
    Par danje dans le forum JBuilder
    Réponses: 4
    Dernier message: 01/11/2005, 23h32
  4. [devc++]Impossible de compiler !!!
    Par insomniak dans le forum Dev-C++
    Réponses: 11
    Dernier message: 24/10/2005, 13h38
  5. [Dev-cpp] Impossible de compiler le projet !
    Par Franck.H dans le forum Dev-C++
    Réponses: 5
    Dernier message: 18/10/2005, 11h55

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