View Full Version : Eclipse will not start

Student Driver
November 1st, 2007, 06:29 AM
Gutsy Gibbon, and a new user to Ubuntu (but on/off user of Linux for a long time) and added this via Synaptic. So, I get a nice graphical failure so I launched it from the terminal and get the following:

me@ubuntop:~$ eclipse
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
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(Secure ClassLoader.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.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)

Any ideas? Thanks.

November 1st, 2007, 06:39 AM
try this:

sudo apt-get install sun-java6-jdk

that should install the JDK, and if you want javadocs, do the same with sun-java6-doc

I'm on a fresh install and accidentally installed jdk5 first, uninstalled, then installed jdk6, and it messed up a ton of sym links and I just got all the kinks worked out. Let me know if it works


Student Driver
November 1st, 2007, 04:48 PM
Thanks, I will give that a shot when I get home today from work. It wasn't like I was dependent on Java 1.4, but have you found any issues running common applets in Java 6?

Student Driver
November 2nd, 2007, 02:06 AM
Yep, that worked. I thought I had the SDK for 1.4 but I might not. I might poke around a bit and see what's up. Thanks.

November 2nd, 2007, 02:43 AM
no problem :)