Bug 146884

Summary: eclipse broken on 10.1 x86-64
Product: [openSUSE] SUSE Linux 10.1 Reporter: Serguei Leontiev <lse>
Component: JavaAssignee: Daniel Bornkessel <dbornkessel>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: asklein, kendy, leo, Marcus.obwandner, simon.held
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: SuSE Linux 10.1   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Serguei Leontiev 2006-01-31 05:01:18 UTC
Installation Repositoryes don't have 32bit java-1.4.2-sun for eclipse

For 10.1-Alpha, I am simple choised java-1.4.2-sun by /etc/eclipse.conf:
if [ `arch` = x86_64 ] ; then
    JAVA_HOME=/usr/lib/jvm/java-1.4.2-sun
fi

Now, that don't work
Comment 1 Serguei Leontiev 2006-01-31 05:53:58 UTC
Probably workaround:
- install 32bit java-1_4_2-sun-1.4.2.10-2.1 from SuSE 10.0;
- add to /etc/eclipse.conf:
if [ `arch` = x86_64 ] ; then
    JAVA_HOME=/usr/lib/jvm/java-1.4.2-sun-1.4.2.10/jre
fi

Any comments?
Comment 2 Daniel Bornkessel 2006-03-16 13:56:48 UTC
Hi and sorry for the delay.
I am currently preparing eclipse natively compiled for x86_64 (natively in the sense of the platform-dependent stuff, not a complete native (i.e. natively compiled Java code) build).
I will come back to this problem when I submitted that package as this bug could get invalid.
Thanks for the report,
Regards,
   Daniel
Comment 3 Marc collin 2006-04-02 20:26:02 UTC
i don't find any source to get eclipse-64bits...

i can get it from eclipse web site... but don't get any rpm....
Comment 6 Martin Schröder 2006-07-03 13:27:17 UTC
*** Bug 168706 has been marked as a duplicate of this bug. ***
Comment 7 Martin Schröder 2006-07-03 13:31:03 UTC
*** Bug 163754 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Bornkessel 2006-07-07 12:51:17 UTC
Just to let you know: There will be a x86_64 version of eclipse. It's already building but still needs some testing.
It will be available in the build service.
Cheers,
Daniel
Comment 9 Andreas Kleen 2006-07-07 13:01:19 UTC
I think you should at least add proper depends to the 32bit eclipse package
to force 32bit java.



Comment 10 Daniel Bornkessel 2006-07-07 15:22:28 UTC
Thing is the Javas do not provide information of whether they are 32bit or 64bit ... so I can not write something like 
Requires: java-32
I could of course change the Java packages to this behaviour (gcj already does that) ... will think about that.
Comment 11 Daniel Bornkessel 2006-07-11 15:38:10 UTC
Urgs ... had eclipse compile on x86_64 last week but for some reason it does not want to anymore :(
However: The solution will be to have a proper x86_64 version ... just to let you know.
Regards,
Daniel
Comment 12 Martin Vogt 2006-07-14 14:41:41 UTC
Hello,

it was easy to build, but Im ussure if it works at all.


--- eclipse.spec.org    2006-07-14 16:28:05.000000000 +0200
+++ eclipse.spec        2006-07-14 16:28:10.000000000 +0200
@@ -24,7 +24,7 @@
 %define eclipse_micro   1
 %define libname         libswt3
 # we'll enable additional platforms later (skh)
-ExclusiveArch: %{ix86} ppc
+ExclusiveArch: %{ix86} ppc x86_64
 %ifarch %{ix86}
 %define eclipse_arch    x86
 %define java_arch       i386

Comment 13 Daniel Bornkessel 2006-07-27 12:48:16 UTC
We have an x86_64 build of eclipse now, so this problem will not occure any more.
Closing bug as fix.
Regards,
Daniel
Comment 14 Daniel Bornkessel 2006-08-07 12:53:14 UTC
*** Bug 197453 has been marked as a duplicate of this bug. ***
Comment 15 Jarl Friis 2007-10-08 19:18:13 UTC
I have just tried this on SuSE 10.3, the problem still exists:

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)

[1]    Exit 1                        eclipse
Comment 16 Daniel Bornkessel 2007-10-09 06:50:41 UTC
No: This is another problem: The 10.3 eclipse needs Java 1.6 to run.
Closing this as fixed again, as the re-opened comment was referring to a different problem.
Comment 17 Jarl Friis 2007-10-10 18:32:38 UTC
This problem in 10.3 seem to have been opened as bug#328671