jhcore.com

26 Jun, 2008

Eclipse 3.4 (Ganymede) on Ubuntu

Posted by: john In: Guides| Ubuntu

Eclipse Ganymede (the successor to Europa) was released today. Ubuntu seems to be stuck on Eclipse 3.2 since at least Feisty Fawn. There are nice features that we are missing out on (Mylyn, inline renames, etc.).

JDK
First things first, you need a JDK (Java SDK) in order to use Eclipse. I am a fan of the OpenJDK, Sun’s open source version of its JDK. OpenJDK recently reached full Sun JDK compliance. But any JDK should work, assuming it is at least Java 5.

sudo apt-get install openjdk-6-jdk

Then update your ~./bashrc file, appending the JAVA_HOME (adjust this if you use a different JDK).

export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/

Get Ganymede

wget http://ftp.osuosl.org/pub/eclipse/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

We should be ready to go:

eclipse3.4/eclipse

And your nice new Eclipse is up and running.

Suggested Plugins
Eclipse is great because it has so many plugins. I even use it as my default Python editor. If you go to Help > Software Updates, you will see a vastly improved update dialog (the previous one was painful).

Here are my favorites:

Let me know what you think of the new Eclipse and if there are other plugins you just can not live without.

Update: As Scott points out in the comments, there is an open request on launchpad to include a more recent version of Eclipse in the Ubuntu repositories: https://bugs.edge.launchpad.net/ubuntu/+source/eclipse/+bug/123064

30 Responses to "Eclipse 3.4 (Ganymede) on Ubuntu"

1 | Scott Wegner

June 26th, 2008 at 3:56 pm

If it’s out-of-the-box compatible with a recent JVM, then why haven’t we seen a package update in the last few *years* of Ubuntu?

There’s a Launchpad bug to upgrade Eclipse here:
https://bugs.edge.launchpad.net/ubuntu/+source/eclipse/+bug/123064

If you want to see Ganymede in Intrepid, be sure to leave a comment!

2 | john

June 26th, 2008 at 4:27 pm

Great point Scott. I wonder how difficult it would be to package Eclipse 3.4 as a .deb as a proof of concept.

3 | Brett Alton

June 26th, 2008 at 4:30 pm

Damn that was easy. Thanks!

4 | Scott Wegner

June 26th, 2008 at 5:11 pm

I do wonder how difficult it would be to upgrade. The only hard part I would expect is that there are so many packages associated/dependent upon it. The latest Debian package is still 3.2, but Fedora has 3.3. I wonder if we could work with their packaging team to get a Fedora package, and then port it to Intrepid.

5 | yang cheng

June 27th, 2008 at 12:38 am

I can not get Subclipse work for ganymede.
it works fine with 3.3 Europa

is it work for you out of box on ganymede 3.4? or need some configuration?
thanks

6 | Martin

June 27th, 2008 at 3:32 am

The problem with subclipse on 3.4 is that ‘Subclipse 1.4.x requires Subversion 1.5.0 version of JavaHL/SVNKit’

the ubuntu repo version is 1.4, so we just have to wait for a 1.5 version.

but there is a 1.5 of libsvn-javahl available as an RPM, which can be installed with ‘alien’

http://svn.haxx.se/subusers/archive-2008-06/0183.shtml

The other problem for me is PDT (the php development toolkit). The 1.0 release is not 3.4 compatible so you have to use the 1.1 integration build, which can be installed via the new ‘dropin’ folder.

7 | Chris

June 27th, 2008 at 9:03 am

I recommend using update-java-alternatives to set the default JVM instead of setting JAVA_HOME. Use “update-java-alternatives -l” to list installed JVMs and “update-java-alternatives -s java-6-openjdk” to set Open JDK as the default.

8 | OsoRojo

June 28th, 2008 at 8:32 pm

You’ll probably have better luck using subversive rather than subclipse in Ganymede, considering it was part of the release train. Browse the new software package manager and you’ll find it. However, be advised that you have to install the connectors directly from Poloarion’s site due to license issues (which are rumored to be being worked on).

9 | Nick Boldt

June 29th, 2008 at 10:28 am

Thanks for this article: we get a lot of Eclipse-on-linux install questions.

http://wiki.eclipse.org/IRC_FAQ#How_do_I_install_Eclipse_on_Linux.3F

In addition to the walkthrough above, you may also want to play with your eclipse.ini or commandline flags to provide more memory and permgen space.

./eclipse -vmargs -Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M

10 | John Paulett

June 29th, 2008 at 10:44 am

Concerning Subclipse/Subversive: I have successfully been running Subclipse 1.2.x (not the latest 1.4.x). No problems that I have found so far.

@Nick Boldt: Great point about the changing the memory and permgen. So far the Ganymede has been rock solid, but those flags are always useful once you get a ton of projects open at once.

@Chris: Thanks for pointing out the update-java-alternatives tool, I was not aware that it would set the JAVA_HOME.

11 | John Krawley

June 29th, 2008 at 10:58 pm

It crashes with the following error…

Any solutions?

/usr/bin/java
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-jar
/home/jdk/eclipse-3.4//plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-data
/home/jdk/workspace.old
-os
linux
-ws
gtk
-arch
x86_64
-showsplash
-launcher
/home/jdk/eclipse-3.4/eclipse
-name
Eclipse
–launcher.library
/home/jdk/eclipse-3.4//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.100.v20080606/eclipse_1114b.so
-startup
/home/jdk/eclipse-3.4//plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar
-exitdata
39f005a
-vm
/usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-XX:MaxPermSize=256m
-jar
/home/jdk/eclipse-3.4//plugins/org.eclipse.equinox.launcher_1.0.100.v20080509-1800.jar

12 | Michael Schmidt

July 5th, 2008 at 1:15 pm

I’m experienced with Eclipse under Windows but pretty new to Ubuntu. This is simple and it works, including the command line flags suggested by Nick Boldt! I placed Eclipse in /home/myname/eclipse. I previously installed Eclipse under Gutsy and used some slightly different directions from the Ubuntu forum. Based on these directions, I put Eclipse in /home/myname/opt and then created an eclipse file in /home/myname/bin with the following code:

=====
#!/bin/sh
export MOZILLA_FIVE_HOME=”/usr/lib/mozilla/”
export ECLIPSE_HOME=”$HOME/opt/eclipse”

$ECLIPSE_HOME/eclipse $*
=====

Is this not needed with Ganymede and Hardy?

Thanks!

13 | Lorenzo

July 7th, 2008 at 5:50 am

I have problems with the installation of JavaHL libraries I really can go through…

I can’t find a way to set up JavaHL in Ganymede. First I tried to install the JavaHL libraries from the Sublipse update, with no success.
Then I tried to use JavaHL binding in Ubuntu repositories installing the libsvn-javahl package. Again, with no success.

Anytime I try to configure the Subclipse plugin it tells that the JavaHL interface cannot be found. Anybody succeeded in such an upgrade? I really can’t find how to get through it.

Any help would be appreciated.
Thanks,
L.

14 | Dag Rende

July 23rd, 2008 at 8:44 am

I have got Ganymede working and subclipse too.
- I installed sun-java-6
- unpacked eclipse ganymede classic and executed eclipse app
- opened update manager tab 2, added http://subclipse.tigris.org/update_1.4.x, checked only subclipse and svnkit adapter and clicked install
- after restart everything worked fine

This way no svn 1.5 is needed.

But…
Somethin is wrong with the java editor - the context help doesn’t find classes and methods it should find, so I switched back to eclipse 3.3 for a while.

15 | Jason Fowler

July 27th, 2008 at 7:17 pm

As a web-developer/designer, I can’t live without Aptana. http://www.aptana.com/

The pro version of php support is almost on par with ZEND Studio, but the price for Aptana Pro is only a fraction of ZEND’s…

16 | Visual Flow Designs » Blog Archive » Can I Ganymede your Ubuntu?

July 30th, 2008 at 12:02 pm

[...] I decided to go with a manual install. I did a quick search for Eclipse Ganymede Ubuntu and found this blog post. I followed the instructions there and had Gannying my Ubuntu in no [...]

17 | Eclipse 3.4 On Ubuntu 8.04.1

August 20th, 2008 at 12:54 am

[...] a little more searching I came across this page which gave a brief description his installation. From his post I edited my ~/.bashrc file and added [...]

18 | Jonathan Doyle

August 26th, 2008 at 12:26 pm

You forgot to say that this doesn’t work for x86_64. The filename for x86_64 is: eclipse-java-ganymede-linux-gtk-x86_64.tar.gz

That just costed me ~2 hours of my life. Goddamn x86 eclipse didn’t run. And didn’t even bother to throw an error, exception, verbose of any kind, not even with -debug. Nothing, zero, nil, nada.

19 | David

September 16th, 2008 at 12:55 pm

On the whole Subversive/Subclipse issue - even though Subversive is “part of” Ganymede, everyone on my team had issues with it moving to the new Subversion version. I found Subclipse to work easily and cleanly the very first time I tried.

So back to Subclipse I go!

20 | Robert Rhodes

September 18th, 2008 at 5:38 pm

I’ve been struggling to install Eclipse 3.4 on Ubuntu 8.04. Does anyone know how to fix this: when I try to display the Console view I get this error message: “Could not create the view: An unexpected exception was thrown:
ava.lang.NullPointerException
at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:138)
at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:157)
at org.eclipse.jface.resource.ImageDescriptor.createResource(ImageDescriptor.java:165)
at org.eclipse.jface.resource.DeviceResourceManager.allocate(DeviceResourceManager.java:56)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.LocalResourceManager.allocate(LocalResourceManager.java:82)
at org.eclipse.jface.resource.AbstractResourceManager.create(AbstractResourceManager.java:88)
at org.eclipse.jface.resource.ResourceManager.createImageWithDefault(ResourceManager.java:192)
at org.eclipse.jface.action.ActionContributionItem.updateImages(ActionContributionItem.java:1043)
at org.eclipse.jface.action.ActionContributionItem.update(ActionContributionItem.java:782)
at org.eclipse.jface.action.ActionContributionItem.fill(ActionContributionItem.java:341)
at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:349)
at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:449)
at org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:59)
at org.eclipse.ui.internal.console.ConsoleView.createPartControl(ConsoleView.java:538)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
at org.eclipse.ui.internal.WorkbenchPage$ActivationList.setActive(WorkbenchPage.java:4169)
at org.eclipse.ui.internal.WorkbenchPage$17.runWithException(WorkbenchPage.java:3234)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$27.runWithException(Workbench.java:1361)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run(StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3378)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3036)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2293)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
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:382)
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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

21 | ElectroSizzle.com » Ubuntu 8.04, SUN Java6 JDK, TexLive, Eclipse 3.4 and Texlipse

September 25th, 2008 at 10:12 pm

[...] The first step to getting a workable Eclipse-based LaTex environment working in Ubuntu is to install a Java Development Kit (JDK), whether that kit is the Sun JDK 6 or one of the open-source (openjdk) distributions.  Since I already had the Sun JDK installed as a prereq for a different program, I’ll outline that first.  On my particular system, I have installed both the JDK and the JRE, which I believe are both required, although I’m not sure about the JDK. Therefore, to install Eclipse 3.4 using the Sun JDK, (sourcing john from jhcore.net): [...]

22 | Rob

October 16th, 2008 at 5:41 pm

Thanks for this. It is nice to have Ganymede on Hardy!

23 | anezch

October 21st, 2008 at 10:52 pm

Hi, i’ve downloaded ganymede jee, and use sun jdk 1.6 u7 (unpacked manually). I’ve setup the JAVA environment to point to my jdk. But i can’t start eclipse. It fails to load the workspace and after the splash screan disappear, it shows a gray dialog, and I have to end the process.

any idea?

24 | Michael S.

October 24th, 2008 at 2:02 pm

He there,
Thanks for your nice instructions.
I tried it and now I have the same problems like Robert.
Has someone already a solution?

Particularly I get this in my console, debug and many other windows:
Could not create the view: Plug-in “org.eclipse.debug.ui” was unable to execute setInitializationData on an instance of “org.eclipse.debug.internal.ui.views.launch.LaunchView”.

25 | Bruce Clement

November 8th, 2008 at 8:58 pm

Thanks for the excellent page.

One update though, the Pydev URL you give has gone 403. http://pydev.sourceforge.net/ still works though.

26 | Ajay

November 18th, 2008 at 2:59 pm

I got eclipse up on Sun-jdk6/ubuntu 8.10 . but when I got to Windows –> preferences — I dont see an option for Java or anything related to java …. I do have JAVA_HOME/PATH set properly …..
ok then I tried updating eclipse and I get this ———

java.lang.ClassFormatError: Illegal UTF8 string in constant pool in class file org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint

-any help would be great

27 | Ajay

November 18th, 2008 at 3:00 pm

Sorry forgot to mention it ubuntu 64 bit

28 | Neil

November 24th, 2008 at 12:26 pm

I had a similar problem as Doyle in post 18 re 64bit.
Eclipse 3.4 32bit seemed to run OK but a known app gave null pointer errors. May be the app itself needs to be changed.

Used this fo get and install for 64 bit:
wget http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/ganymede/R/eclipse-java-ganymede-linux-gtk-x86_64.tar.gz

tar xzvf eclipse-java-ganymede-linux-gtk-x86_64.tar.gz
mv eclipse eclipse3.4
eclipse3.4/eclipse/eclipse

but get this error:
bash: eclipse3.4/eclipse/eclipse: cannot execute binary file

29 | Neil

November 25th, 2008 at 1:06 am

My error, the AMD is 64bit but I have Vista Win32, not the 64 bit OS. This is on Linux Ubuntu 8.10 (dual boot) but it would still be 32 bit, unless I am mistaken. Now to figure out he null errors, The same app runs on Vista, XP, Ubuntu 8.1 on other computers without a problem except one with the Intel 945G chipset, had to remove 8.10 and reinstall 8.04.
That chipset was very bad on Vista, went to XP on that one.

30 | charasoverride

November 29th, 2008 at 4:11 pm

Thanks! The tutorial was very helpful

Comment Form

Categories

About

A source for news, reviews, guides, and tools for technology by John Paulett. Featured on Planet Ubuntu Users.

Also check out: