Eclipse on Ubuntu Linux for AMD64
I recently built an AMD 64-bit dual core machine, and installed Ubuntu Edgy for x86-64 on it. One thing I found (and had read elsewhere) is that 64-bit Eclipse is buggy. It hangs and dies usually within 30 minutes, and sometimes on a few minutes. And I found the performance improvements to be hardly noticable, so not worth the hassle of frequent crashes.
My solution was to switch back to the 32 bit Eclipse. Not hard, but not dirt simple. First install the 32-bit JVM ia32-sun-java5-bin.
sudo apt-get install ia32-sun-java5-bin
At this point, you may find that the 32-bit JVM is set as your default JVM. Not what we necessarily want to do. Fix it thus:
sudo update-alternatives --config java
Then choose your 64-bit JVM as the default.
Now, download the 32-bit Eclipse. You can extract it anywhere. I put it in my home folder under ~/Applications/eclipse32. But, here's the problem: it won't run due to ELFCLASS32 issues because you have the 64-bit JVM on the path. If you are like me, you try setting JAVA_HOME to point at the 32-bit JVM. But that won't work either. Eclipse doesn't care about JAVA_HOME. It depends solely on finding "java" on the path. The solution, for me, was to write a bash script called "eclipse.sh" in the eclipse32 folder as such:
#!/bin/bash PATH=/usr/lib/jvm/ia32-java-1.5.0-sun/bin:$PATH /home/username/Applications/eclipse32/eclipse
You'll of course need to change the path to the eclipse binary. Then, you need to set the executable permission:
chmod +x eclipse.sh
Now, you should be able to run eclipse.sh and get 32-bit Eclipse, and the crashes and hangs will be a thing of the past.
Weblog
Fri, 08/17/2007 - 2:46pm
Fri, 11/16/2007 - 2:05am
Tue, 10/02/2007 - 9:56am
Fri, 10/12/2007 - 7:34pm
I have two suggestions
1) The biggest thing I see is that you are still using the default Gnome fonts, which are friggin huge. The first thing I would do is switch to another font (or a smaller point size for the same font). Set both your Application font and your Document font. I'm particularly fond of DejaVu Sans Condensed, which is very good for fitting alot on the screen. Then in Eclipse, you need to make sure your fonts are set to System Default. Window-Preferences-Appearance-Colors and Fonts. Then under Basic, at the very least set Text Font and Dialog Font to System Default. If you like your editor to be monospaced, you might manually select your Text Font to be DejaVu Sans Mono.
2) The second thing I would suggest is switching to a GTK theme that is more lean. I really love the Candido themes, which take a little work to set up. They are very minimal on space usage, but very attractive at the same time.
Mon, 11/12/2007 - 8:28am
Sat, 11/17/2007 - 5:14pm
Excellent, was able to download the latest Eclipse 3.3 Europa PDT (PHP Development Tools) using your method, on my AMD 64 install of Gutsy Gibbon. I want it to work on Drupal Development (notice you have a Drupal site).
One additional little twist which allows me to select the JVM to use with each different install of eclipse:
### # executed eclipse in current dir with: # ./eclipse -vm /usr/lib/jvm/ia32-java-1.5.0-sun/jre/bin/java # or from a launcher # home/victorkane/eclipse -vm /usr/lib/jvm/ia32-java-1.5.0-sun/jre/bin/java ###That way you don't need a shellscript to execute it, you can put the above path into a launcher specification or menu item.
Sat, 03/14/2009 - 10:25am
Thu, 02/07/2008 - 5:20am
Wed, 03/19/2008 - 4:28am
sudo alien -i ibm-java-x86_64-sdk-6.0-0.0.x86_64.rpm#!/bin/bash PATH=/opt/ibm/java-x86_64-60/jre/bin:$PATH /home/myname/bin/eclipse3-3-2/eclipse/eclipse chmod +x ./eclipseibm.shFri, 04/11/2008 - 4:09pm
Tue, 03/04/2008 - 9:55pm
Tue, 03/18/2008 - 12:01pm
Sat, 07/12/2008 - 11:32am
Thu, 09/04/2008 - 9:13am
Wed, 01/14/2009 - 4:02pm