"Failed to get application" error when starting Eclipse

When I try to launch my eclipse, I get the following exception: it does not fit.

java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini). at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514) at org.eclipse.equinox.launcher.Main.run(Main.java:1311) 

Help is needed. Thank you

+52
java eclipse
Mar 22
source share
20 answers

The /configuration/config.ini file should contain org.eclipse.core.runtime@start in the osgi.bundles attribute. This is the default osgi.bundles property, it may have been (accidentally) changed during some update:

 osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start 

You can, if necessary, override it by setting it as a VM argument in /eclipse.ini :

 -Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start 
+50
Mar 22
source share

I had the same problem, and here is how I solved it: I added the plugin "org.eclipse.core.runtime" in the "plugins" section of the "Configuration" tab of the .product editor. I set the initial level for it by default and the automatic start in true. I removed other plugins. My reasoning was this: Eclipse complains that org.eclipse.core.runtime is not running, so let it make sure that it starts and that it is the only plugin that runs.

My application went fine after I did this. Then I looked around config.ini to see what had changed and saw that org.eclipse.core.runtime was now changed to org.eclipse.core.runtime@start. This is consistent with BalusC's suggestion, I just made it from the .product editor.

+13
Feb 11 '11 at 23:09
source share

Adding two cents for those who are looking for " Make sure the org.eclipse.core.runtime package is enabled and running ":

Adding “arbitrary” bundles to the list of packages just because they seem to be missing is not always the best solution. This can sometimes become quite unpleasant, because these new plugins can depend on other missing packages that need even more packages and so on ...

So, before adding a new dependency on the list of required packages, make sure that you understand why the package is needed (the debugger is your friend!).

This question does not contain enough information to make this a valid answer in all cases, but if you see a message that org.eclipse.core.runtime is missing, try installing eclipse.application. launchDefault is false , especially if you try to run an application that is not an "eclipse application" (but maybe just a headless runtime on top of the equinox).

This link may come in handy: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html , find the system property eclipse.application .launchDefault.

+11
Mar 08 2018-12-12T00:
source share

I had a problem with Mac OS Lion after moving OS / Data from an older machine to a new one.

It was decided to delete the old eclipse folder (which I have in the Applications folder) and copy the eclipse folder again (same version, same unzipped zip file, no change).

+5
Sep 11
source share

try running it from the command line like:

  >eclipse -clean 

Or you can run it using java instead of the standard javaw , here:

  >eclipse -vm c:\jdks\java_1.5\jre\bin\java.exe 
+4
Mar 22 '10 at 15:30
source share

The accepted answer above is correct, except that it is not entirely clear.

You need to add the following line to the end of the eclipse.ini file:

 -Dosgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@ 
+3
Jan 08 '12 at 4:16
source share
 This error happen cause you deleted the config.ini file while you deleted the plugins. So, when it can not find configuration in config.ini when eclipse lauching, then it use default configuration which is not fit with your os. The following steps solve you problem: 1. Delete setting in configuration folder. 2. create a new config.ini file. 3. copy following setting and save: 4. ` osgi.splashPath = platform:/base/plugins/org.eclipse.platform osgi.bundles=org.eclipse.equinox.common@2:start, org.eclipse.update.configurator@3:start, org.eclipse.core.runtime@start eclipse.product=org.eclipse.sdk.ide osgi.instance.area.default=@user.home/workspace eof=eof ` 5. restart eclipse. 
+3
Jul 12 '13 at 2:53 on
source share

For me, installing jdk 1.8 solved the problem.

+1
Jan 21 '19 at 12:03
source share

I downloaded the "ADT Bundle for Windows SDK" adt-bundle-windows-x86.zip to "Documents and Settings \ myusername \ My Documents \ Downloads" and tried to unzip the c: \ Android folder

When everything seems to be unpacked, I saw some files that are not in the destination folder, including eclipse.ini.

I solved this by renaming adt-bundle-windows-x86.zip to the short name adt.zip , moving it to c: \ and repeating the decompression.

All due to poor handling of long file names in windows

0
Nov 30 '12 at 12:43
source share

For those who came here, trying to run the application from the Windows command line or a batch file, and possibly those who receive the specified error message in the Rational Clear Case log file:

PATH is very important for processing configuration files, and it took me the following:

 START "Clear Case" /D"C:\Program Files (x86)\Rational\ClearQuest\rcp\" "C:\Program Files (x86)\Rational\ClearQuest\rcp\clearquest.exe" 

pay attention to the / D switch .

0
Dec 06
source share

Adding to a well-filled page:

I had this when I tried to move the eclipse installation to another location on my disk. I tried grepping for the old directory path in the package, thinking that I could fix it with sed, but the path was written in several formats and was even found in binary files. I gave up, made a new install, and installed my plugins again.

(Here's the question of moving the eclipse installation , but it did not give me enough to make it work.)

0
Apr 05 '13 at 14:22
source share

shawn: my eclipse began when I expanded the scope:

osgi.bundles=org.eclipse.equinox.common@2: start, org.eclipse.update.configurator@3: start, org.eclipse.core.runtime@start, org.eclipse.equinox.ds@start, org. eclipse.equinox.event@start

0
Feb 07 '14 at 11:39
source share

I tried all the methods suggested here. I finally deleted the eclipse folder, extracted it again, and now everything works fine.

0
May 30 '14 at 14:30
source share

I received this message while trying to run STS 3.7.0 on java 6 jdk, after pointing to java jdk 7 (-vm param in STS.ini) the problem disappeared.

0
Jul 02 '15 at 11:39 on
source share

For me, in the end, the trick was adding -clean at the beginning of eclipse.ini

0
Nov 23 '16 at 11:01
source share

I had this problem somewhere in the logs, and I saw that my version of java was not somehow 1.8. By updating it to 1.8, I solved the problem.

0
Oct. 14 '17 at 19:34 on
source share

why is my osgi.bundles soo complex compared to yours !?

osgi.bundles = link: file CodenameOnePlugin_1.0.0.201401080915/@4, link: file: com.ibm.icu_4.2.1.v20100412.jar @ 4 link: file javax.servlet_2.5.0.v200910301333. jar @ 4, link: file: org.eclipse.ant.core_3.2.201.v20110203_r362.jar @ 4, link: file: org.eclipse.compare_3.5.101.R36x_v20100929-0800.jar @ 4 link: file org. eclipse.compare.core_3.5.101.R36x_v20100929-0800.jar @ 4, link: file: org.eclipse.core.commands_3.6.0.I20100512-1500.jar @ 4 link: file org.eclipse.core.contenttype_3. 4.100.v20100505-1235.jar @ 4, link: file: org.eclipse.core.databinding_1.3.100.I20100601-0800.jar @ 4 link: file org.eclipse.core.databinding.observable_1.3.0.I20100601-0800. jar @ 4, link: file: org.eclipse.core.databinding.property_1.3.0.I20100601-0800.jar @ 4 link: file org.eclipse.core.expressions_3.4.200.v20100505.jar@4, link: file: org.eclipse.core.filebuffers_3.5.100.v20100520-0800.jar @ 4, link: file: org.eclipse.core.filesystem_1.3.1.R36x_v20100727-0745.jar @ 4 link: org file. Eclips e.core.jobs_3.5.1.R36x_v20100824.jar @ 4, link: File: org.eclipse.core.net_1.2.100.I20100511-0800.jar @ 4 link: file org.eclipse.core.resources_3.6.1. R36x_v20110131-1630.jar @ 4, link: file: org.eclipse.core.runtime_3.6.0.v20100505.jar @ 4, link: file: org.eclipse.core.runtime.compatibility.auth_3.2.200.v20100517.jar @ 4, link: file: org.eclipse.core.variables_3.2.400.v20100505.jar @ 4, link: file: org.eclipse.debug.core_3.6.0.v20100519.jar @ 4 link: org.eclipse file. debug.ui_3.6.3.v20101201_r362.jar @ 4, link: file: org.eclipse.ecf_3.1.0.v20100906-1425.jar @ 4 link: file org.eclipse.ecf.filetransfer_4.0.0.v20100906-1425. jar @ 4, link: file: org.eclipse.ecf.identity_3.1.0.v20100906-1425.jar @ 4 link: file org.eclipse.ecf.provider.filetransfer_3.1.0.v20100906-1425.jar@4, link: file: org.eclipse.equinox.app_1.3.1.R36x_v20100803.jar @ 4, link: file: org.eclipse.equinox.common_3.6.0.v20100503.jar @ 4 link: org.eclipse.equinox file. concurrent_1.0.100.v20100503.jar @ 4, link: fi: org.eclipse.equinox.p2.core_2.0.3.R36x_v20110111.jar @ 4, link: File: org.eclipse.equinox.p2.engine_2.0.1.R36x_v20110201 .jar @ 4 links: org.eclipse file. equinox.p2.metadata_2.0.1.R36x_v20101202.jar @ 4, link: file: org.eclipse.equinox.p2.metadata.repository_1.1.0.v20100513.jar @ 4 link: file org.eclipse.equinox.p2. repository_2.0.2.R36x_v20110111-1500.jar @ 4, link: file: org.eclipse.equinox.preferences_3.3.0.v20100503.jar @ 4, link: file: org.eclipse.equinox.registry_3.5.0.v20100503.jar @ 4, link: file: org.eclipse.equinox.security_1.0.200.v20100503.jar @ 4, link: file: org.eclipse.help_3.5.0.v20100524.jar @ 4 link: file org.eclipse.jdt. core_3.6.2.v_A76_R36x.jar @ 4, link: file: org.eclipse.jdt.core.manipulation_1.3.0.v20100520-0800.jar @ 4 link: file org.eclipse.jdt.debug_3.6.1.v20100715_r361/@4 , link: file: org.eclipse.jdt.launching_3.5.200.v20110105_r362.jar @ 4, link: file: org.eclipse.jdt.ui_3.6.2.r362_v20110203.jar @ 4 link: file org.eclipse.jface_3.6.2 .M20110210-12 00.jar @ 4, link: File: org.eclipse.jface.databinding_1.4.0.I20100601-0800.jar @ 4 link: file org.eclipse.jface.text_3.6.1.r361_v20100825-0800.jar @ 4, link: file: org.eclipse.ltk.core.refactoring_3.5.101.r362_v20101117-0800.jar @ 4, link: file: org.eclipse.ltk.ui.refactoring_3.5.0.v20100526-0800.jar @ 4, link: file: org.eclipse.osgi.services_3.2.100.v20100503.jar @ 4, link: file: org.eclipse.search_3.6.0.v20100520-0800.jar @ 4 link: file org.eclipse.swt_3.6.2. v3659c.jar @ 4, link: file: org.eclipse.team.core_3.5.101.R36x_v20110203-1036.jar @ 4 link: file org.eclipse.team.ui_3.5.102.R36x_v20110203-1036.jar@4, link: file: org.eclipse.text_3.5.0.v20100601-1300.jar @ 4, link: file: org.eclipse.ui_3.6.2.M20110203-1100.jar @ 4 link: org.eclipse.ui file. console_3.5.0.v20100526.jar @ 4, link: file: org.eclipse.ui.editors_3.6.1.r361_v20100825-0800.jar @ 4, link: file: org.eclipse.ui.forms_3.5.2.r36_v20100702.jar @ 4 link: file org.eclipse.ui.ide_3.6.2.M20101201-0800.jar @ 4, link: File: org.eclipse.ui.navigator_3.5.0.I20100601-0800.jar @ 4, link: File: org. eclipse.ui.navigator.resources_3.4.202.M20101124-0800.jar @ 4 links: org .eclipse.ui.views_3.5.1.M20110202-0800.jar @ 4 file, link: file: org.eclipse.ui.views. properties.tabbed_3.5.100.I20100509-0800.jar @ 4 link: file org.eclipse.ui.workbench_3.6.2.M20110210-1200.jar @ 4 link: file org.eclipse.ui.workbench.texteditor_3.6.1.r361_v20100714- 0800.jar@4

0
Dec 29 '17 at 8:27
source share

On Windows, running Eclipse as an administrator solved the problem. (Right-click> Run as Administrator)

0
Aug 13 '18 at 16:09
source share

Download the new eclipse or spring set and open the old workspace in a new eclipse or STS

0
Dec 6 '18 at 3:54
source share

Delete processcenter.ini at a location similar to: C: \ IBM \ IntegrationDesigner \ V8.5 \ n.o. and then when the IDE appears, go to your Windows preference and enter the correct URL.

-3
Sep 17 '14 at 18:14
source share



All Articles