Bug 328671 - eclipse fails to start
Summary: eclipse fails to start
Status: RESOLVED FIXED
: 305452 332661 (view as bug list)
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Other (show other bugs)
Version: RC 2
Hardware: Other Other
: P5 - None : Critical (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords: NTS_Public
Depends on:
Blocks:
 
Reported: 2007-09-26 19:26 UTC by JP Rosevear
Modified: 2007-11-22 10:53 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description JP Rosevear 2007-09-26 19:26:58 UTC
Installed the eclipse package and ran it:

jpr@gambit:~/Desktop> eclipse
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319
Comment 1 John Ellis 2007-10-05 12:52:09 UTC
This still occurs in 10.3 release.
Comment 2 John Ellis 2007-10-05 13:10:00 UTC
As the error above suggests this is because Eclipse packages were compiled against Java 1.6 instead of Java 1.5. Since Java 1.5 is the default in openSUSE 10.3, Eclipse fails outright.

So either a) Java 1.6 needs to be a dependency for Eclipse or b) Eclipse needs to be re-compiled with a target version of 1.5.

Work-around is to install Java 1.6.
Comment 3 JP Rosevear 2007-10-05 16:53:13 UTC
Installing Java 1.6 also fixes it for me.
Comment 4 Daniel Bornkessel 2007-10-09 07:39:07 UTC
Yes: We used Java 1.6 for 10.3.
It does not have a hard requirement on the version.
Assigning this to the new Java maintainers: The only change that needs to be made is a Requirement on java >= 1.6.0
Regards,
Daniel
Comment 5 Ales Nosek 2007-10-09 13:33:13 UTC
I submitted fixed packages for 10.3 and Factory:

/work/src/done/10.3/eclipse-archdep
/work/src/done/STABLE/eclipse-archdep


I added Requires: java >= 1.6.0 to packages:

eclipse-archdep-platform-3.3-3.x86_64.rpm
eclipse-archdep-platform-commons-3.3-3.x86_64.rpm

Anja: Could we release these two rpms as online update for 10.3? Thanks

Comment 6 Ales Nosek 2007-10-10 13:49:02 UTC
*** Bug 305452 has been marked as a duplicate of this bug. ***
Comment 7 Jarl Friis 2007-10-10 18:38:56 UTC
I think also there is a problem that the "eclipse" package does not directly nor indirectly require eclipse-archdep
Comment 12 Anja Stock 2007-10-18 11:12:59 UTC
released
Comment 13 JP Rosevear 2007-11-22 10:53:13 UTC
*** Bug 332661 has been marked as a duplicate of this bug. ***