The Coffee Machine

Java & Eclipse tips blog

  • Categories

  • Archives

  •  

    September 2008
    M T W T F S S
    « Aug    
    1234567
    891011121314
    15161718192021
    22232425262728
    2930  

Eclipse 3.4 Ganymede on Ubuntu 8.04 Hardy Heron

Posted by ObLiB on September 9, 2008

UbuntuUbuntu Hardy Heron does not have Eclipse 3.4 Ganymede in its deposits. Indeed the Aptitude eclipse installation will install Eclipse 3.2 on your system.

To install Eclipse Ganymede, it must be done manually.

JavaJava installation

By default, Ubuntu comes with a free Java interpreter: gij, so if you want to use the Sun Microsystems Java™ Development Kit (JDK), you will need to install it.

Java is available in the depots. You have a choice between two versions: Java5 and Java6.

  • Java5 is available in multiverse deposits for all versions of Ubuntu currently supported.
  • Java6 is available in multiverse deposits since Feisty. For Edgy and Dapper you’ve gor to check the backports multiverse deposits.

You can install the following packages according to your needs:

The above list is the list of available packages for Java6. For the Java5 packages list, simply replace "java6" by "java5".

For example to install the Java6 JRE execute the following commands:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

EclipseEclipse 3.4 Ganymede installation

Download the version that suits you on the official website.

For example Eclipse IDE for Java Developers (eclipse-java-ganymede-linux-gtk.tar.gz):

wget http://download.eclipse.org/technology/epp/downloads/release/ganymede/R/eclipse-java-ganymede-linux-gtk.tar.gz
tar xzvf eclipse-java-ganymede-linux-gtk.tar.gz
mv eclipse eclipse3.4

You should be ready to launch

eclipse3.4/eclipse

Wait for your eclipse 3.4 Ganymede to start, and go to Windows -> Preferences. Find Java -> Installed JREs. You should see the list of the JREs known by eclipse. If the Sun Microsystems JREs doesn’t appear, you’ll have to show it to eclipse. To do this, Click the “Search” button and select the /usr/lib/jvm/ path. Eclipse should find JREs intalled on your system and list them. Just select the one that you want to use, and you’re ready to program on your nice new Eclipse 3.4 Ganymede ;)

8 Responses to “Eclipse 3.4 Ganymede on Ubuntu 8.04 Hardy Heron”

  1. someuser said

    I currently use hardy heron. I use eclipse a lot. I have jdk1.6.0_06 downloaded from sun site (not the sun-java6-jre as listed above). I tried to install ganymede when i did not have JAVA_HOME set properly and it did not run. Setting JAVA_HOME on .bashrc and .bash_profile won’t work on ubuntu. So i had to put it permanently somewhere else. But ganymede did not work well. It took long time on my 2.4GHz processor 2G Memory with even /opt/eclipse/eclipse -vmargs -XX:MaxPermSize=256m. Now from one two days i am even having problem with europa. I think i installed something during these days or some permission issue. It won’t help by changing the workspace. I am wating for final release of intrepid. I will give ganymede a try once again (i have downloaded the archive already). But due to the new eclipse problem i have not use it for some days and now moved my project to netbeans. Plz help me. Thank you

  2. sarlesh said

    Thanks bro..
    I got your article very helpful.

  3. a said

    thank you so much!!!

  4. Phil said

    I’ve tried this with a few different distros of eclipse (for java devlopers, for enterprise java developers) – but each time I get to running ./eclipse and nothing happens, just returns me to the prompt immediately, no eclipse processes running under ‘ps -ef’, nothing sent to the screen.

    Any ideas?

    Regards,
    Phil

  5. Russell said

    I got the same problem as Phil.

    Anyone knows why?

    Regards,
    Russell

  6. Russell said

    Problem solved.

    I just need download 64bit Ganymede since the ubuntu I use is 64bit. Then everything works fine now.

  7. Ikenna said

    After downloading the .tar.gz pack of the classic eclipse from the site and following instructions I found on the online ubuntu documentation on user installation on eclipse, I get this error [not displayed but logged]:

    !ENTRY org.eclipse.ui.workbench 4 0 2009-01-10 22:21:26.381
    !MESSAGE Widget disposed too early!
    !STACK 0
    java.lang.RuntimeException: Widget disposed too early!
    at org.eclipse.ui.internal.WorkbenchPartReference$1.widgetDisposed(WorkbenchPartReference.java:171)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:117)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1182)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1163)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:1026)
    at org.eclipse.swt.widgets.Control.release(Control.java:3221)
    at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
    at org.eclipse.swt.widgets.Control.release(Control.java:3221)
    at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
    at org.eclipse.swt.widgets.Control.release(Control.java:3221)
    at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:1184)
    at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:211)
    at org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:466)
    at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1948)
    at org.eclipse.swt.widgets.Widget.release(Widget.java:1029)
    at org.eclipse.swt.widgets.Control.release(Control.java:3221)
    at org.eclipse.swt.widgets.Widget.dispose(Widget.java:442)
    at org.eclipse.swt.widgets.Shell.dispose(Shell.java:1893)
    at org.eclipse.swt.widgets.Display.release(Display.java:3083)
    at org.eclipse.swt.graphics.Device.dispose(Device.java:237)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:129)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

    The eclipse actually doesn’t start but ends up showing an empty dialog box that refuses to close. I’m currently using java version 1.6.0_07, don’t know whether it is the cause. My OS is the Ubuntu LTS 8.04. Could you kindly make a comprehensive note on how to ‘manually’ install eclipse when you already have a downloaded pack. Thanks a lot in advance.

  8. libero said

    Hello, Ikenna.

    I have same problem with you, but solved.

    Try to the following ones.

    =========================================================
    someone says:

    Xulrunner upgrade….

    Yeah this Xulrunner thing can happen alot after people installed Firefox 3. A quick fix is usually to set MOZILLA_FIVE_HOME from a script that starts eclipse.

    eg – adding:
    MOZILLA_FIVE_HOME=/usr/lib/firefox (or where ever you have it)
    export MOZILLA_FIVE_HOME

    This is a setting eclipse will use on startup before any other method to find out the system’s default browser. One of the other methods seems to cause a few problems.

    Glad you got it fixed.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>