Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » MAC: Eclipse doesn't start(Eclipse can’t start on my Mac)
MAC: Eclipse doesn't start [message #1066100] Sun, 30 June 2013 15:30 Go to next message
Eclipse UserFriend
Hi dear community-members,

as a more or less "newcomer" to Eclipse, I have a "big problem"

I was using Eclipse Indigo for half a year now, while using Java 1.6 from Apple.

Because of some security reasons I updated to 1.7_25 last week. First I just installed JRE, later SDK.
Java 1.6 still existed after installing 1.7, so I just moved the folders to the trashbin.

The java.com Website recognizes, that I have the latest update installed. Also the Java Control Panel in the Settings.app works and I have a "Java" folder in my /Library.

Here comes the problem:
I can't start any Eclipse version!
At first I wanted to start Indigo with the new Java VM, that failed. I thought may the latest Kepler update fixes it, but it still doesn't start


The following error appears in the console.app:
SystemUIServer[158]: JLRequestRuntimeInstall: CFMessagePortSendRequest: error -1

Trying to start Eclipse using terminal, by typing:
java -jar /Applications/Eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar or the Kepler equivalent

Brings up:
***WARNING: Display must be created on main thread due to Cocoa restrictions.
An error has occurred. See the log file
/Applications/Eclipse/configuration/1372603674305.log.

Content of the log-file:
!SESSION 2013-06-30 16:47:53.887 -----------------------------------------------
eclipse.buildId=M20120208-0800
java.version=1.7.0_25
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=de_DE


!ENTRY org.eclipse.osgi 4 0 2013-06-30 16:47:58.740
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTException: Invalid thread access
at org.eclipse.swt.SWT.error(SWT.java:4282)
at org.eclipse.swt.SWT.error(SWT.java:4197)
at org.eclipse.swt.SWT.error(SWT.java:4168)
at org.eclipse.swt.widgets.Display.error(Display.java:1065)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:822)
at org.eclipse.swt.widgets.Display.create(Display.java:805)
at org.eclipse.swt.graphics.Device.<init>(Device.java:130)
at org.eclipse.swt.widgets.Display.<init>(Display.java:696)
at org.eclipse.swt.widgets.Display.<init>(Display.java:687)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:716)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:161)
at org.eclipse.ui.internal.ide.application.IDEApplication.createDisplay(IDEApplica tion.java:153)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.jav a:95)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196 )
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecl ipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLa uncher.java:79)
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:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja va:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)


In my opinion, Eclipse couldn't find the Java version!?
Where can I set the path to it?

Could someone please help me

Thanks a lot!

OSX 10.8.4
Re: MAC: Eclipse doesn't start [message #1066115 is a reply to message #1066100] Mon, 01 July 2013 02:26 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

Java's being found, it's why you're getting diagnostic output mentioning Oracle. The eclipse/Eclipse.app/Contents/MacOS/eclipse.ini contains the extra VM arguments -XstartOnFirstThread and -Dorg.eclipse.swt.internal.carbon.smallFonts . Have you tried adding them?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: MAC: Eclipse doesn't start [message #1066469 is a reply to message #1066115] Tue, 02 July 2013 18:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi!
Thanks for your answer!

I Haven't changed the .ini yet!
This is how it is untouched after installation:


-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.standard.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts


What should I change here?
Thanks in advance!
Re: MAC: Eclipse doesn't start [message #1066483 is a reply to message #1066469] Tue, 02 July 2013 20:03 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

Nothing, except that by launching with "java -jar /Applications/Eclipse/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar" I have no idea if it's being used.

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: MAC: Eclipse doesn't start [message #1066499 is a reply to message #1066483] Tue, 02 July 2013 21:18 Go to previous messageGo to next message
Eclipse UserFriend
So what would you suggest, that I can startup the Eclipse UI?
Everytime I want to startup Eclipse via /Applications/Eclipse.app I get a warning sound, no message & nothing happens Sad
Re: MAC: Eclipse doesn't start [message #1066538 is a reply to message #1066499] Wed, 03 July 2013 05:14 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4434
Registered: July 2009
Senior Member

Add them to your invocation of "java" at the command line.

Do you have a Eclipse.app/Contents/MacOS/eclipse executable file next to the eclipse.ini, with the execute permission enabled?


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: MAC: Eclipse doesn't start [message #1067064 is a reply to message #1066538] Fri, 05 July 2013 15:56 Go to previous messageGo to next message
Eclipse UserFriend
Thank you soooo much!
This command works for Kepler:
java -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -jar /Applications/Eclipse/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar


But if I click on the Icon in my Launchpad or my App-Folder still nothing happens although the commandline-workaround works...
Yes there's an exec file next to the ini-file, what du you mean with „execute permission enabled"? I can read & write there, an the file is not protected...

Thanks!
Re: MAC: Eclipse doesn't start [message #1070224 is a reply to message #1067064] Wed, 17 July 2013 13:32 Go to previous message
Eclipse UserFriend
Can anyone please explain to me how to start Eclipse with the icon in Programs or Launchpad?
I don't want to use the terminal for this all the time Sad

Thanks a lot!
Previous Topic:Run configurations / Debug configurations dialogs take a lot of time
Next Topic:Tutorial failing on Linux Mint 15
Goto Forum:
  


Current Time: Sat Apr 20 04:09:47 GMT 2024

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

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

Back to the top