Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exception starting eclipse luna (SR1) on OSX

Tags:

macos

eclipse

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.

like image 534
BigBen Avatar asked Sep 30 '14 20:09

BigBen


People also ask

Are you getting below eclipse startup error?

Are you getting below eclipse startup error? A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No

How to fix eclipse application cannot start issue?

You have open eclipse.ini file and change -vm path to correct JDK location. In my case it’s /Library/Java/JavaVirtualMachines/jdk1.10.001.jdk/Contents/Home/bin. Now try restarting your eclipse by clicking eclipse.app icon and error should go away. Let me know if you face any issue starting Eclipse application.

How to fix eclipse keeps crashing on startup?

You have open eclipse.ini file and change -vmpath to correct JDK location. In my case it’s /Library/Java/JavaVirtualMachines/jdk1.10.001.jdk/Contents/Home/bin. Now try restarting your eclipse by clicking eclipse.app icon and error should go away.

What Java Runtime Environment (JRE) is required to run eclipse?

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Skip to main content Skip to primary sidebar Skip to footer Additional menu Crunchify Largest free Technical and Blogging resource site for Beginner. We help clients transform their great ideas into reality! Java Abstract Class & Method


1 Answers

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.

like image 195
Konstantin Kolinko Avatar answered Sep 21 '22 14:09

Konstantin Kolinko