Edit: This is pretty outdated. Ubuntu still has the bad habit of installing GIJ though. I’ve had a lot of success just finding GIJ in Synaptic and locking it (Package->Lock Version) in an uninstalled state. This appears to only work within Synaptic, but it seems to recognize openjdk as the runtime and doesn’t break anything.

Maybe it’s my trust of open-source friendly yet proprietary companies, but when I use Java, I want it from Sun, not an open-source knock-off. For all the highlights of the open-source philosophy, there are times when something open-source is clearly inferior, at least at a specific moment in time. GIJ is a Java runtime that seems compatible, but makes Java dirt slow. Alternatives are still good for everybody in the end, so GIJ doesn’t offend me, but in Ubuntu’s Feisty repository, GIJ is required to run Eclipse. It’s maddening, it makes Eclipse run at a fraction of the speed, but to uninstall it is to uninstall Eclipse. At least until the people at Ubuntu notice this.

For now I can only offer a solution that shouldn’t need to exist. Make sure the package “sun-java6-jre” is installed, then add the line “/usr/lib/jvm/java-6-sun” is to the top of the file “/etc/eclipse/java_home” as root. Afterwards, Eclipse should be almost… too fast.

4 Responses to “Ubuntu's Eclipse is slow because GIJ is slow”

  1. malachi Says:

    or, if you don’t have / don’t want to use root, type:

    cat “export JAVA_HOME=/usr/lib/jvm/java-6-sun/” > ~/.eclipse/eclipserc

    into your terminal. Also, you’ll want to edit /etc/jvm and probably use update-alternatives… see hod139’s post in http://ubuntuforums.org/showthread.php?t=183239.

  2. Adrian Nadeau Says:

    Thanks for the post, it seems faster now… hopefully it holds up!

  3. Anonymous Says:

    This was the most helpful thing I found on the internet for speeding up slow eclipse. Thanks

  4. Ahmad Abo Bakr Says:

    thanks that really helped me

Leave a Reply