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 :

Echec pour ouvrir Eclipse après avoir configuré un seul projet avec le JDK 11


Sujet :

Eclipse Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    731
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 731
    Par défaut Echec pour ouvrir Eclipse après avoir configuré un seul projet avec le JDK 11
    Bonjour,
    J'utilise la version 4.7.3 d' Eclipse. Je suis sous MAC. Jusqu'à hier tous mes projets étaient configuré avec Java 8. Hier, j'ai configuré un seul projet avec le JDK 11. Aujourd'hui, quand j'essaye d'ouvrir Eclipse, cela me donne l'erreur suivante:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
     
        !SESSION 2020-12-05 10:08:55.574 -----------------------------------------------
        eclipse.buildId=4.7.3.M20180330-0640
        java.version=11.0.9
        java.vendor=Oracle Corporation
        BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=fr_FR
        Framework arguments:  -product org.eclipse.epp.package.jee.product -keyring /Users/admin/.eclipse_keyring
        Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/admin/.eclipse_keyring
     
        !ENTRY org.eclipse.core.net 1 0 2020-12-05 10:08:59.662
        !MESSAGE System property http.nonProxyHosts has been set to local|*.local|169.254/16|*.169.254/16 by an external source. This value will be overwritten using the values from the preferences
     
        !ENTRY org.eclipse.core.resources 2 10035 2020-12-05 10:09:05.489
        !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
     
        !ENTRY org.eclipse.osgi 4 0 2020-12-05 10:09:06.389
        !MESSAGE Application error
        !STACK 1
        org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
        	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
        	at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
        	at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
        	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
        	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
        	at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
        	at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
        	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
        	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
        	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
        	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
        	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
        	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
        	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
        	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
        	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
        	at org.eclipse.equinox.launcher.Main.run(Main.java:1499)
        Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
        	at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
        	at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
        	... 22 more
        Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
        	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
        	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
        	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
        	... 24 more
    Voici mon fichier eclipse.ini

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
     
        -startup
        ../Eclipse/plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
        --launcher.library
        ../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.551.v20171108-1834
        -product
        org.eclipse.epp.package.jee.product
        -showsplash
        org.eclipse.epp.package.common
        --launcher.defaultAction
        openFile
        --launcher.defaultAction
        openFile
        --launcher.appendVmargs
        -vmargs
        -Dosgi.requiredJavaVersion=1.8
        -Dosgi.instance.area.default=@user.home/eclipse-workspace
        -XX:+UseG1GC
        -XX:+UseStringDeduplication
        --add-modules=ALL-SYSTEM
        -XstartOnFirstThread
        -Dorg.eclipse.swt.internal.carbon.smallFonts
        -Dosgi.requiredJavaVersion=1.8
        -Xms2048m
        -Xmx6g
        --add-modules=ALL-SYSTEM
        -Xdock:icon=../Resources/Eclipse.icns
        -XstartOnFirstThread
        -Dorg.eclipse.swt.internal.carbon.smallFonts
        -javaagent:/Applications/Eclipse.app/Contents/Eclipse/lombok.jar

    J'ai lu pas mal de chose sur internet, mais aucun ne m'a permis de résoudre mon problème

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Septembre 2006
    Messages
    731
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2006
    Messages : 731
    Par défaut
    Re-bonjour,
    j'ai upgradé Eclipse avec la dernière version 2020/09 et ça marche. La discussion est close

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

Discussions similaires

  1. Réponses: 1
    Dernier message: 26/03/2018, 10h11
  2. Réponses: 1
    Dernier message: 05/03/2017, 13h07
  3. Réponses: 0
    Dernier message: 16/12/2014, 14h19
  4. Réponses: 2
    Dernier message: 11/02/2012, 19h32
  5. [eclipse 3.0.1] Création de projet avec sous-projet
    Par whilecoyote dans le forum Eclipse Java
    Réponses: 5
    Dernier message: 11/07/2005, 10h31

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