Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse error [wont open](error)
Eclipse error [wont open] [message #1773974] Sun, 08 October 2017 03:21 Go to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
Please help when clicking on eclipse to open and run it. it gives me an error message [ see photo ]
I am using eclipse on a "VPS" Virtual Private Server. This vps is used for running and managing runescape private servers. Eclipse is very important in this management. Can someone help me. I am not sure how to fix this issue by myself. I will allow someone to connect through Team Viewer.

if staff or anyone is reading this please leave a comment or even email me @zofalane@yahoo.com, please i need to get this fixed.

[ ERROR CODING IN THE ECLIPSE WORKSPACE FOLDER BELOW ]


!SESSION 2017-10-08 07:18:13.493 -----------------------------------------------
eclipse.buildId=4.7.1.M20170906-1700
java.version=9
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.osgi 4 0 2017-10-08 07:20:30.168
!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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
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)
... 23 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(Unknown Source)
... 25 more

!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-10-08 07:20:30.259
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.lang.NoClassDefFoundError: javax/annotation/PreDestroy
at org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)
at org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)
at org.eclipse.e4.core.internal.contexts.ContextObjectSupplier$ContextInjectionListener.update(ContextObjectSupplier.java:78)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)
at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)
at org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)
at org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)
at org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)
at org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)
at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)
at org.eclipse.osgi.container.Module.publishEvent(Module.java:476)
at org.eclipse.osgi.container.Module.doStop(Module.java:634)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.annotation.PreDestroy 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(Unknown Source)
... 21 more
!SESSION 2017-10-08 11:29:41.993 -----------------------------------------------
eclipse.buildId=4.7.1.M20170906-1700
java.version=9
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.osgi 4 0 2017-10-08 11:29:51.103
!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(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1472)
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)
... 23 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(Unknown Source)
... 25 more
Re: Eclipse error [wont open] [message #1773978 is a reply to message #1773974] Sun, 08 October 2017 04:49 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
You're using Java 9 so you have to add --add-modules=ALL-SYSTEM to the eclipse.ini as described in https://wiki.eclipse.org/Configure_Eclipse_for_Java_9#eclipse.ini_summary

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse error [wont open] [message #1773979 is a reply to message #1773978] Sun, 08 October 2017 04:56 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
see i have tried to understand this. and handle it myself but i cant... i dont know how to do it myself.
Re: Eclipse error [wont open] [message #1773981 is a reply to message #1773979] Sun, 08 October 2017 05:32 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
can someone please help through team veiw.
Re: Eclipse error [wont open] [message #1773982 is a reply to message #1773981] Sun, 08 October 2017 05:48 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Edit the file Eclipse.app/Contents/Eclipse/eclipse.ini as shown in the wiki. The Mac makes it hard to go into an App folder with the Finder, but if I recall correctly, there's some "Show Package Contents" thing in the context menu.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse error [wont open] [message #1773984 is a reply to message #1773982] Sun, 08 October 2017 06:03 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
I do not and did not see a "Eclipse.app" folder anywhere.
  • Attachment: E1.PNG
    (Size: 23.85KB, Downloaded 960 times)
Re: Eclipse error [wont open] [message #1773985 is a reply to message #1773984] Sun, 08 October 2017 06:16 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
would be really awesome if someone could help me on teamviewer..
Re: Eclipse error [wont open] [message #1773993 is a reply to message #1773984] Sun, 08 October 2017 16:07 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

The .app folder is specific to macOS versions. It's only mentioned as a way to help find the eclipse.ini file. You've already found it.

The critical parts of what is shown on the wiki page is that each argument is on its own line, and that every line after -vmargs is passed as an argument to the JVM that you specified. So you need to specify where a valid Java 8 JVM is, or point it at Java 9 and make sure --add-modules=ALL-SYSTEM is on a line, by itself, somewhere below the line with -vmargs.

Invalid lines after -vmargs will usually force the JVM to exit with an error code like -1. Save a copy of the original eclipse.ini before you start experimenting with it.


_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Sun, 08 October 2017 16:11]

Report message to a moderator

Re: Eclipse error [wont open] [message #1773995 is a reply to message #1773993] Sun, 08 October 2017 19:07 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
and how to i point is to java 9?
and where should i add the "--add-modules=ALL-SYSTEM "
Re: Eclipse error [wont open] [message #1774004 is a reply to message #1773995] Mon, 09 October 2017 03:45 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is shown in https://wiki.eclipse.org/Configure_Eclipse_for_Java_9#eclipse.ini_summary (and it can be anywhere after the -vmargs line). Given you're already running Java 9, you don't need to do that part, but on a terminal windows you can run "which javaw" and it should tell you where that is located. I think running /usr/libexec/java_home -X tells you where all your JREs/JDKs are all located as well.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse error [wont open] [message #1774006 is a reply to message #1774004] Mon, 09 October 2017 05:58 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

/usr/libexec/java_home is specific to macOS, though, and you're on Windows.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse error [wont open] [message #1774022 is a reply to message #1774006] Mon, 09 October 2017 10:49 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
Well i've made it very clear that im not sure how to do this or fix it and you all keep repeating the same instructions.
Re: Eclipse error [wont open] [message #1774023 is a reply to message #1774022] Mon, 09 October 2017 10:52 Go to previous messageGo to next message
bodhi glass is currently offline bodhi glassFriend
Messages: 9
Registered: October 2017
Junior Member
I'm now getting this error code [ see attachment below ]
Re: Eclipse error [wont open] [message #1774024 is a reply to message #1774023] Mon, 09 October 2017 11:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
The thing is, you want personalized help on team viewer, and I'm sure that if we offered that free service, 1000s of people per day would happily make use it. But that wouldn't even pay for a gram of butter to put on my bread...

Your latest capture seems to indicate you're not longer using Java 9 but using some default JVM (which could be anything copied/linked) to that location. Look for folders in C:\Program Files\Java (but not C:\Program Files (x86)\Java because those are 32 bit VMs) and navigate into the latest non-Java9 one to located the javaw.exe, e.g., C:\Program Files\Java\jre1.8.0_121\bin\javaw.exe and use that as your -vm argument in your eclipse.ini. Note that if you used the installer to install your Eclipse, it gives you the choices available on your machine and lets you pick one without having to mess with the eclipse.ini manually.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Eclipse error [wont open] [message #1774067 is a reply to message #1773995] Tue, 10 October 2017 07:18 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

The part shown at in the Configure Eclipse to run on Java 9 section, using the -vm switch, is how you point Eclipse at Java 9, or any other java.exe or javaw.exe. Alter the paths as needed for your machine, it may very well be different. As for where to add the --add-modules=ALL-SYSTEM line, it should be on a line, by itself, after the -vmargs line, but only if you are using Java 9 to run Eclipse. Or just retry this with a fresh download of Oxygen.1a on Wednesday.

_
Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Tue, 10 October 2017 07:20]

Report message to a moderator

Re: Eclipse error [wont open] [message #1815061 is a reply to message #1773974] Wed, 25 September 2019 05:42 Go to previous messageGo to next message
Seema Patil is currently offline Seema PatilFriend
Messages: 1
Registered: September 2019
Junior Member
The reason for this is the java version that is required for particular eclipse version is not installed or set up.

Solution : Make sure your environment variable has the java path set up correctly for the version that has been mentioned in eclipse.ini file.

In my case, eclipse.ini had below line :

-Dosgi.requiredJavaVersion=1.8

Also, make sure to add below line after -vmargs in eclipse.ini file :

--add-modules=ALL-SYSTEM




Hope this helps :)
Re: Eclipse error [wont open] [message #1815590 is a reply to message #1815061] Sun, 06 October 2019 14:59 Go to previous message
DI V is currently offline DI VFriend
Messages: 20
Registered: October 2019
Junior Member
FWIW:

  • Whatever the wiki linked to above, https://wiki.eclipse.org/Configure_Eclipse_for_Java_9#eclipse.ini_summary , contained in 2017, currently it says nothing about where to find the file "eclipse.ini". I found mine at C:\Users\DIV\eclipse\php-2019-09\eclipse\eclipse.ini
  • My INI file already contains "-vmargs" ... "--add-modules=ALL-SYSTEM". Although it doesn't have "-vm". (Possibly because I installed only the JRE, not the JDK? I am running Eclipse PHP.)


--DIV
Previous Topic:Padding between the gutter and the code editor
Next Topic:How to create standalone model from .edit project in EMF?
Goto Forum:
  


Current Time: Thu Mar 28 19:06:46 GMT 2024

Powered by FUDForum. Page generated in 0.03812 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top