6

When starting eclipse I get the following error on mac

01:37:17 ~/Downloads/eclipse$ ./Eclipse.app/Contents/MacOS/eclipse
org.eclipse.m2e.logback.configuration: The org.eclipse.m2e.logback.configuration bundle was activated before the state location was initialized.  Will retry after the state location is initialized.
org.eclipse.m2e.logback.configuration: Logback config file: /Users/ben/Development/workspace.luna2/.metadata/.plugins/org.eclipse.m2e.logback.configuration/logback.1.5.0.20140606-0033.xml
org.eclipse.m2e.logback.configuration: Initializing logback
java.lang.ClassCastException: org.eclipse.osgi.internal.framework.EquinoxConfiguration$1 cannot be cast to java.lang.String
    at org.eclipse.m2e.logback.configuration.LogHelper.logJavaProperties(LogHelper.java:26)
    at org.eclipse.m2e.logback.configuration.LogPlugin.loadConfiguration(LogPlugin.java:189)
    at org.eclipse.m2e.logback.configuration.LogPlugin.configureLogback(LogPlugin.java:144)
    at org.eclipse.m2e.logback.configuration.LogPlugin.access$2(LogPlugin.java:107)
    at org.eclipse.m2e.logback.configuration.LogPlugin$1.run(LogPlugin.java:62)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

This is from a fresh download of eclipse-java-luna-SR1-macosx-cocoa-x86_64.tar.gz anyone else having the same issue?

I'm not getting any output in my console windows within eclipse, assuming it's related to the above error.

BigBen
  • 1,162
  • 2
  • 11
  • 22

2 Answers2

4

See question 26077296

The class cast exception is a regression in Eclipse 4.4.1 (Luna SR1) Equinox component: https://bugs.eclipse.org/bugs/show_bug.cgi?id=445122

A number of components were broken by that.

Community
  • 1
  • 1
Konstantin Kolinko
  • 3,854
  • 1
  • 13
  • 21
0

Workaround which saved a lot of headache for me, because eclipse wont start at all.

Adding the following lines to eclipse.ini helped.

-Dosgi.configuration.area.default=null
-Dosgi.user.area.default=null
-Dosgi.user.area=@user.home
-Dosgi.instance.area.default=null

and then ./eclipse -clean

Then make an update from the menu Help.

and then simply run eclipse, the way you were doing till now.

infoclogged
  • 3,641
  • 5
  • 32
  • 53