Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Java, Eclipse Ide and 32 bit emulation
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
carlw2
n00b
n00b


Joined: 29 Feb 2004
Posts: 1

PostPosted: Sun Feb 29, 2004 5:17 am    Post subject: Java, Eclipse Ide and 32 bit emulation Reply with quote

Hi,

Has anyone got java (sun jdk 1.4.2_03) working in 32 bit emulation under an amd64 install?

I set up my 64 bit install expecting to be able to do java development and read that black down had a 64 bit version of 1.4.2. That ran fine but then trying to get any ide to work was a problem. IntelliJ uses its own jre to start up and I couldnt work out how to change that. Eclipse compiles its own binary but its still an elf 32 bit binary and was giving me not found errors.

I then installed the 32 bit emulation thinking it was the answer. I then tried the sun jdk again and intellij and was having some wierd problems about locales and downloaded files being corrupted.

If anyone has had success in this area please email me as I would love to get this going but for the moment I am going back to a 32 bit install.

Thanks,
Carl.
c.woodward@eclipsegroup.com.au
Back to top
View user's profile Send private message
volkher
n00b
n00b


Joined: 26 Feb 2004
Posts: 9
Location: Erlangen, Germany

PostPosted: Thu Mar 04, 2004 9:33 pm    Post subject: Reply with quote

Hi Carl,

I had the same Problem with IntelliJ Idea. You must download the generic unix version without a jre bundled. Then you must build a custom jre. Use the blackdown jdk and copy the folder jre to your IDEA_HOME. Then you must add some files. See Install.txt in your IDEA folder.
Now you have to turn off the idea jre version check. Simply add -Didea.no.jdk.check=true to your jvm arguments in idea.sh.

Ok, IDEA should work in case you have a valid key.

Eclipse still doesn't work on my linux box, too. But I am working on it :-) . I think, it has something to do with gtk/motif libaries, because I get error messages from bothe version that they cannot find these libaries. Maybe an 32bit compalibilty issue?

regards, Volkher
_________________
My System: Opteron 246, Tyan Thunder K8W, 2 GB Ram, 3 Ware Raid Controller, 2x160 GB Harddisk,
GeForce FX 5200
Back to top
View user's profile Send private message
secondshadow
Guru
Guru


Joined: 23 Jun 2003
Posts: 362

PostPosted: Sat Mar 06, 2004 3:32 am    Post subject: Reply with quote

I'm not sure if they work for this, but there are, last I checked, gtk 32-bit compatability libraries...though I believe there is also an eclipse source distribution that one could try.
Back to top
View user's profile Send private message
volkher
n00b
n00b


Joined: 26 Feb 2004
Posts: 9
Location: Erlangen, Germany

PostPosted: Sat Mar 06, 2004 2:22 pm    Post subject: Reply with quote

Yeah, there are some patches for the gtk2 version to make swt 64bit compatible. I am working on an ebuild for this. Does anybody know why the current ebuilds want to emerge kde before emerging eclipse even if you use gnome?
_________________
My System: Opteron 246, Tyan Thunder K8W, 2 GB Ram, 3 Ware Raid Controller, 2x160 GB Harddisk,
GeForce FX 5200
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Mon Mar 08, 2004 4:39 pm    Post subject: Reply with quote

volkher: I am a bit of an ebuild novice, but getting a version of eclipse running on amd64 is very much of interest to me.

If you would like any assistance (whether it be testing or anything else) please feel free to contact me.
Back to top
View user's profile Send private message
volkher
n00b
n00b


Joined: 26 Feb 2004
Posts: 9
Location: Erlangen, Germany

PostPosted: Mon Mar 08, 2004 6:13 pm    Post subject: Reply with quote

Thank you! Until now, I have tried various ideas, but nothing worked. My first goal is a running eclipse on amd64. With that, the writing of an ebuild should not make so much problems. But therefore, we need a running eclipse! In the last few days, I have made some experiences:

Try this link:http://people.redhat.com/faltaous/eclipse/ There is a patch for the java files of the swt libary. However, I get error messages that eclipse could not find the native swt libaries. I think they have to be recompiled, too. But that is not so easy! When I use the swt release for eclipse 2.1.2, it complains:
Code:
ld option pthread not supported.

Maybe a bug in the makefile? There is also the possibility that the release cannot be build on amd64. You can find an amd64 build of swt at ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/eclipse/N-N20040308-200403080010/swt-N20040308-linux-gtk-amd64.zip
but it is a night build. (-> not very stable) I have tried to use the native libaries of this build in connection with eclipse 2.1.2 and 3M7, but there must be minor changes in the api. Eclipse complains about native methods it could not found.

There is also an bug report for that:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=37775
OK, many problems, as you can see. Here are some ideas: (If you can help, that would be great!)

1) Making the swt libaries of eclipse 2.1.2 or 3M7 64bit compliant (We could use the amd64 build as a reference)
2) Backporting the amd64 build to 2.1.2 and 3M7
3) Try to use the gtk 32bit compalibilty libaries secondshadow mentioned (I would not be happy with that solution)

First of all, it would help if you can try some of the things I mentioned above. Maybe they work for you?
I had to recompile the eclipse starter, too (probaly a path issue) You could find the sources in the directory plugins.platform.launcher.libary.gtk of the source distribution. (It is necessary to emerge tcsh in order to run the build file)

Again, if you could help, that would be great!
You can contact me via email, too.

regards, Volkher
_________________
My System: Opteron 246, Tyan Thunder K8W, 2 GB Ram, 3 Ware Raid Controller, 2x160 GB Harddisk,
GeForce FX 5200
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Wed Mar 10, 2004 3:04 pm    Post subject: Reply with quote

Well, I had a go trying to get eclipse to run using the x86 emulation libraries, and Sun JDK 1.4.2 (32 bit).
No luck. It appears to be complaining about the theme engine, and looking in the lib32 directories, it appears that they have not been provided as part of the gtk emulation package.

Also tried the motif build which didn't go much better.

Just noticed that amd64 builds of eclipse look like they are starting to appear on the download pages now. I'm going to give I20040309 a try.
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Wed Mar 10, 2004 4:58 pm    Post subject: Reply with quote

That integration build does not seem too happy either:

JVM terminated. Exit code=13
/home/myuser/opt/j2sdk1.5.0/bin/java
-cp /home/myuser/opt/eclipse/startup.jar org.eclipse.core.launcher.Main
-os linux
-ws gtk
-arch amd64
-showsplash /home/myuser/opt/eclipse/eclipse -showsplash 600
-shared /home/myuser/opt/eclipse/eclipse -shared 530010
-data /home/myuser/workspaces/test
-vm /home/myuser/opt/j2sdk1.5.0/bin/java
-vmargs
-cp /home/myuser/opt/eclipse/startup.jar org.eclipse.core.launcher.Main

Tried it with blackdown jdk and got the same results.
Back to top
View user's profile Send private message
larryas2
n00b
n00b


Joined: 11 Mar 2004
Posts: 3
Location: annapolis, MD

PostPosted: Thu Mar 11, 2004 1:03 pm    Post subject: latest integration build works fine Reply with quote

I had to remove the .eclipse config file in my home directory and then I was able to get the latest integration build to work.

Lucky for me, I didn't have any active projects on this machine yet, not sure how to handle that, maybe import them from the workspace after you start it?
Back to top
View user's profile Send private message
nigelhannam
n00b
n00b


Joined: 21 Feb 2003
Posts: 70

PostPosted: Thu Mar 11, 2004 4:35 pm    Post subject: Reply with quote

Build I20040310 does indeed seem to run.

It failed to start up correctly the first time I ran it, but subsequent attempts have all started ok.

I think it's gonna be better to give the eclipse developers some more time to get the amd64 build stable, and then look at modifying the existing ebuild to get this in portage.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum