Eclipse fails to start on a fresh installation (Gutsy)

Asked by Bill Schell

Just upgraded my desktop from Fiesty to Gutsy and decided to install eclipse afterward.
I typed 'eclipse' at the shell prompt and got back the messages below. Doing the
(touch,chmod,chown) commands recommended just got rid of the 'Could not
create' mesages, but not the java.lang.UnsupportedClassVersionError.

Looks like I have the wrong version of something, fresh out of the box. Any ideas
on what?

Thanks very much.

Bill

'searching for compatible vm...
  testing /usr/lib/jvm/java-gcj...not found
  testing /usr/lib/kaffe/pthreads...not found
  testing /usr/lib/jvm/java-6-sun...not found
  testing /usr/lib/jvm/java-1.5.0-sun...not found
  testing /usr/lib/j2se/1.5...not found
  testing /usr/lib/j2se/1.4...found
Could not create /usr/local/lib/eclipse/.eclipseextension. Please run as root:
    touch /usr/local/lib/eclipse/.eclipseextension
    chmod 2775 /usr/local/lib/eclipse/.eclipseextension
    chown root:staff /usr/local/lib/eclipse/.eclipseextension
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/core/launcher/Main (Unsupported major.minor version 49.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)

Question information

Language:
English Edit question
Status:
Solved
For:
Eclipse Edit question
Assignee:
No assignee Edit question
Solved by:
Bill Schell
Solved:
Last query:
Last reply:
Revision history for this message
Bill Schell (schell2) said :
#1

BTW, I installed eclipse just by clicking on eclipse in synaptic and letting it
install what it wanted to. Java was previously installed under Fiesty.

Revision history for this message
Bill Schell (schell2) said :
#2

I uninstalled the j2re1.4 package and installed the sun-java6-jre package
along with (with sun-java6-fonts, sun-java6-bin, and sun-java6-plugin) and eclipse starts
up fine now. Looks like this version of eclipse is not compatible with j2re1.4.

This package dependency should be included with the eclipse package.

Bill