Eclipse fails to start on a fresh installation (Gutsy)

Asked by Bill Schell on 2007-10-23

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.


'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(
        at Method)
        at java.lang.ClassLoader.loadClass(
        at sun.misc.Launcher$AppClassLoader.loadClass(
        at java.lang.ClassLoader.loadClass(
        at java.lang.ClassLoader.loadClassInternal(

Question information

English Edit question
Eclipse Edit question
No assignee Edit question
Solved by:
Bill Schell
Last query:
Last reply:
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.

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.