Eclipse not starting after migration to new mac - eclipse

I just used the Migration Assistant to move my stuff to a new mac and now when I launch Eclipse, I'm getting a pop-up telling me to look at:
~/.eclipse/org.eclipse.platform_3.7.0_564163029/configuration/1343925478439.log
which contains:
!SESSION 2012-08-02 12:37:58.263 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_33
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/Me/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/Me/.eclipse_keyring -showlocation
!ENTRY org.eclipse.osgi 4 0 2012-08-02 12:37:58.630
!MESSAGE Application error
!STACK 1
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
I found this question: and tried adding the following to /Applications/eclipse-indigo/Eclipse.app/Contents/MacOS/eclipse.ini:
-Dosgi.bundles=org.eclipse.equinox.common#2:start,org.eclipse.update.configurator#3:start,org.eclipse.core.runtime#
but it still didn't work. I also tried running eclipse from the command line with the -clean option:
/Applications/eclipse-indigo/eclipse -clean
Any other ideas?

I had the same issue (eclipse helios), I compared my old system to the new one and for some reason the /Application/eclipse/configuration folder was very different
the new machine only had org.eclipse.osgi in the configuration folder, where as the old one had org.eclipse.core.runtime, org.eclipse.core.simpleconfigurator, org.eclipse.core.source, org.eclipse.osgi,org.eclipse.ui.intro.universal,org.eclipse.core.update.
I replace the new configuration folder with the old one and it started it up. It still wasn't the same though... a couple of things that I noticed was the eclipse marketplace was gone as well as all my maven builds.
Finally I just copied and the Application/eclipse folder from the old rig to the new one and it worked just fine.

I don't know what the error is, but since installing Eclipse is a simple matter of extracting the archive, I never try to migrate an Eclipse installation to a new machine. I just copy my workspace(s) over, install Eclipse fresh, and run.

Go to the old mac and find the Eclipse folder under /Applications. Then copy the "configuration" folder to the new Mac and replace the corrupt configuration folder at the same path, also in /Applications/eclipse. This happens because OS X Migration Assistant mistakenly thinks the configuration files are an application incompatible with your new computer.

Related

Eclipse Indigo Crashes Very Unstable

I am using Ubuntu 14.04 with JRE 8. I am a newbie tying to learn javascript, but I have the rather annoying problem that my Eclipse Indigo SR2 x86_64 installation crashes every few moments.
Solutions I've tried:
Purging / reinstalling Java (sometimes after a crash I get an error message stating that Java crashed, but most times Eclipse simply crashes and no message.)
reinstalling Eclipse
Adding " -Dorg.eclipse.swt.browser.DefaultType=mo­zilla " at the end of the eclipse.ini file (no change in crashing behavior)
Checked for updates
My error log says the following:
!SESSION 2015-11-06 16:15:11.677
----------------------------------------------- eclipse.buildId=M20120208-0800 java.version=1.8.0_66
java.vendor=Oracle Corporation BootLoader constants: OS=linux,
ARCH=x86_64, WS=gtk, NL=en_HK Framework arguments: -product
org.eclipse.epp.package.javascript.product Command-line arguments:
-os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.javascript.product
!ENTRY org.eclipse.jface 2 0 2015-11-06 16:15:40.366 !MESSAGE Ignored
reentrant call while viewer is busy. This is only logged once per
viewer instance, but similar calls will still be ignored. !STACK 0
java.lang.RuntimeException at
org.eclipse.jface.viewers.ColumnViewer.checkBusy(ColumnViewer.java:763)
at
org.eclipse.jface.viewers.ColumnViewer.update(ColumnViewer.java:552)
at
org.eclipse.ui.model.WorkbenchContentProvider$4.run(WorkbenchContentProvider.java:334)
at
org.eclipse.ui.model.WorkbenchContentProvider.runUpdates(WorkbenchContentProvider.java:159)
at
org.eclipse.ui.model.WorkbenchContentProvider.processDelta(WorkbenchContentProvider.java:132)
at
org.eclipse.ui.model.WorkbenchContentProvider.resourceChanged(WorkbenchContentProvider.java:106)
at
org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at
org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at
org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:395)
at
org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1530).......
Greatly appreciate any tips for getting Eclipse to work properly.
thanks,
yup

Eclipse Spring Tool Suite workspace broken

After forced shut down of an Eclipse STS workspace it doesn't start up, the error in .metadata/.log is:
!SESSION 2015-02-06 11:32:47.154 -----------------------------------------------
eclipse.buildId=3.6.3.201411281414-RELEASE-e43
java.version=1.7.0_60
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.springsource.sts.ide
Command-line arguments: -data /home/myHome/STSWorkspace -os linux -ws gtk -arch x86_64 -product org.springsource.sts.ide
!ENTRY org.eclipse.ui 4 0 2015-02-06 11:35:09.243
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.ClassCastException: org.eclipse.e4.ui.model.application.ui.menu.impl.ToolBarSeparatorImpl cannot be cast to org.eclipse.e4.ui.model.application.ui.menu.MToolBar
Startup with -clean option didn't work. Any idea on how to fix the .metadata directory?
Thanks in advance
I am not sure whether this error is related to your workspace or the STS installation. What happens if you select a different or fresh and clean workspace? Does that work?
If not, I would re-install a fresh copy of STS, since the error looks a bit like an incompatibility between different parts, maybe an incomplete update or something like that.
If starting STS with a different workspace works just fine, I woudl completely delete the .metadata directory of your workspace while STS is NOT running. Then restart STS (the workspace will be empty, but the projects are still around on dics since you deleted the .metadata directory only). Go to "Import Existing Projects into Workspace", select the workspace location in the upcoming dialog and re-import those existing projects into your workspace.

Trying to install JGit to install EGit and getting error requires package org.kohsuke.args4

Trying to install JGit to install EGit and getting error:
Cannot complete the install because one or more required items could not be found.
Software being installed: Eclipse JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm.feature.group 2.1.0.201209190230-r)
Missing requirement: JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm 2.1.0.201209190230-r) requires 'package org.kohsuke.args4j [2.0.12,2.1.0)' but it could not be found
Cannot satisfy dependency:
From: Eclipse JGit Command Line Interface 2.1.0.201209190230-r (org.eclipse.jgit.pgm.feature.group 2.1.0.201209190230-r)
To: org.eclipse.jgit.pgm [2.1.0.201209190230-r]
~~~~ Update ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I gave it the new update site and it said EGit was already installed
So then I went to uninstall it and only one of ~6 Egit entries had the Uninstall button enabled when selected. (Why won't it let me uninstall them? - ed) I uninstalled that one hoping maybe it would manage uninstalling all of the entries. (Why isn't the Uninstall Software option next to the Install new Software option? -ed)
I then tried to install EGit again and said some plugs were not necessary to be installed because they were already installed (Why won't it let me over write it? -ed). So it let me continue based on the other plugins already being installed.
I restarted as recommended.
I now get this alert and can't open up Flash Builder (Eclipse).
Cannot complete the request. See the error log for details.
"Eclipse EGit" will be ignored because it is already installed.
The log contains this information:
!SESSION 2012-10-17 16:38:16.346 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_35
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -keyring /Users/me/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -keyring /Users/me/.eclipse_keyring -consoleLog -showlocation
!ENTRY org.eclipse.osgi 4 0 2012-10-17 16:38:16.892
!MESSAGE Application error
!STACK 1
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:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
*Another developer I know said he tried for a few days to get EGit installed and couldn't. Is this normal? *
Any suggestions?
Did you use the h t t p://download.eclipse.org/egit/updates repository? This seems to be incomplete, see this bug report: https://bugs.eclipse.org/bugs/show_bug.cgi?id=392087.
If you want to install EGit, just use this repository: http://download.eclipse.org/releases/juno/
It contains the latest version of EGit (2.1) plus all necessary dependencies (including JGit).

Problems occurred when invoking code from plug-in: "org.eclipse.core.resources"

How do I resolve the above reported error message? Additional details are given below:
Exception Stack Trace
java.lang.NullPointerException
at org.eclipse.m2e.jdt.internal.MavenClasspathContainerInitializer.initialize(MavenClasspathContainerInitializer.java:48)
at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2843)
at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1878)
at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3128)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2691)
at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2855)
at org.eclipse.jdt.internal.core.ClasspathChange.generateDelta(ClasspathChange.java:220)
at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged(DeltaProcessor.java:2052)
at org.eclipse.jdt.internal.core.DeltaProcessingState.resourceChanged(DeltaProcessingState.java:470)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:395)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:1530)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2353)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeAllContainers(JavaModelManager.java:2153)
at org.eclipse.wst.jsdt.internal.core.JavaModelManager.getJsGlobalScopeContainer(JavaModelManager.java:1530)
at org.eclipse.wst.jsdt.core.JavaScriptCore.getJsGlobalScopeContainer(JavaScriptCore.java:1319)
at org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2740)
at org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:2019)
at org.eclipse.wst.jsdt.core.JavaScriptCore.initializeAfterLoad(JavaScriptCore.java:2655)
at org.eclipse.wst.jsdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:32)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Session Data
eclipse.buildId=I20120608-1400
java.version=1.7.0_08-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.jee.product -keyring /Users/ravisankars/.eclipse_keyring -showlocation
One thing I did (though I recommend uninstalling and re-installing your plugins first as previously posted by #Rajkumar) is to remove the builder causing the issue. MyProject -> Properties -> Builders ...[Troublesome Builder]... Remove.
It is a short run solution, you are only circumventing the real issue, but for me, it did what I needed it to for the time being.
Quite a few things had happened since I first installed Eclipse, like (a) installing / uninstalling plugins (b) upgrading the IDE without correspondingly upgrading the workspace. Since the history has become complex, troubleshooting also got trick. Fresh installation along with importing the code base again, fixed the issue for me.
Problem like happens if you have to many resources file like java scripts in your eclipse project. The solution is to remove the java script nature from project facets or disable the java script validation.
Well, before you go into all the trouble of uninstalling and installing again; if you haven't done any special action with your plug-ins, you may want to try the following which is fast and simple:
Close the project(s)
Open the project(s)
Restart eclipse
For me after this it is working. This is solving a lot of unaccepted issues that may occurred with older eclipse versions too.

projects are lost in eclipse workspace after restart

I need some help!
I am using eclipse 3.7 and mylyn 3.6.2 with JIRA connector 3.0.2
Sometimes after restart eclipse forgets all the projects in the workspace. Workspace is not totally recreated all the mylyn connections, and java working sets are present, but all the projects are gone.
So I need to re-import them each time this happens.
I am blaming mylyn, because this never happened before I started using it.
And in log file I see that it has some problems on start:
!SESSION 2011-10-25 10:34:39.302 -----------------------------------------------
eclipse.buildId=M20110909-1335
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.mylyn.tasks.core 2 0 2011-10-25 10:34:45.765
!MESSAGE Failed to load tasks.xml.zip, restoring from snapshot
!STACK 1
org.eclipse.core.runtime.CoreException: Task list file contains no data "/home/german/work/irbisenv/javawsp/.metadata/.mylyn/tasks.xml.zip"
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizer.readTaskList(TaskListExternalizer.java:203)
at org.eclipse.mylyn.internal.tasks.core.externalization.TaskListExternalizationParticipant$1.ex
...
The problem was with my HDD. After formatting everything works fine.