Aug 18
FYI: Eclipse 3.4 (“Ganymede”) + Hibernate IDE = NoClassDefFoundError
A heads up in case anyone is thinking about using these together. Currently (Aug 18, 2008), the release version of Hibernate IDE (aka the Hibernate Eclipse plugin) does not work with Eclipse 3.4 (“Ganymede”) without one of 2 things:
- Unjarring, copying, and rejarring a file from Eclipse 3.3
- Using the Hibernate IDE Nightly Update Site
Discussion for this is covered in the Hibernate Forums and in HBX-1068 in Hibernate JIRA.
Since it’s already fixed in the nightlies, your best bet is to hit the nightly build site for the tools. If you’re afraid of the nightlies and/or the harder install process and want to pull the missing class (“org/eclipse/ui/internal/util/SWTResourceUtil”) from Eclipse 3.3, do this:
- Copy the “org.eclipse.ui.workbench” jar from your Eclipse 3.3 install/plugins directory to a temp directory (say, c:\temp). Mine was called “org.eclipse.ui.workbench_3.3.1.M20070921-1200.jar”
- Extract the missing class file:
jar xvf org.eclipse.ui.workbench_3.3.1.M20070921-1200.jar org/eclipse/ui/internal/util/SWTResourceUtil.class - Copy the “org.eclipse.ui.workbench” jar from your Eclipse 3.4 install/plugins directory to the same directory. Mine was called “org.eclipse.ui.workbench_3.4.0.I20080606-1300.jar”
- Update the JAR file: jar uvf org.eclipse.ui.workbench_3.4.0.I20080606-1300.jar org/eclipse/ui/internal/util/SWTResourceUtil.class
- Copy the Eclipse 3.4 JAR file back to your Eclipse 3.4 install/plugins directory (overwriting the original).
That should do it! Note that this information is only correct until the next version of the Hibernate IDE tools are make into a formal release. The last release date listed on the site was April 9, 2008, so I would guess a new release would occur soon.



October 31st, 2008 at 8:58 pm
As of the end of October 2008 (Hibernate Tools 3.2.3 GA), this problem still exists. Following your instructions to add the missing class solved the problem. Thank you for posting this workaround.
November 13th, 2008 at 7:03 am
Thanks for the post. As of today the stable build still gives rise to the error, but the nightly build works fine.
Thanks again.
January 6th, 2009 at 8:49 pm
AS OF JANUARY 2009 THIS IS STILL A PROBLEM.
Much appreciate the post, totally wish this could be resolved.
February 11th, 2009 at 9:06 am
Still a problem in Feb 2009….i worry that Hibernate are not serious about their continued Eclipse Support. Does anyone know of something similar to hibernate ?
March 7th, 2009 at 6:14 am
Still a problem in March 2009 , really annoying that although Eclipse is such a widely used IDE for Java Developement still Hibernate Tools guys have not sorted this out.
March 7th, 2009 at 11:20 pm
The trick is to update eclipse itself – then it all works properly as of now.
March 7th, 2009 at 11:22 pm
The trick is to update eclipse itself, then everything works.
March 19th, 2009 at 1:19 am
Still problem in March 19th 2009… thank you very much for your post. it is really help me..
June 25th, 2009 at 11:40 pm
thank you very much.. that’s really helpful
July 7th, 2009 at 8:47 am
get nothing out ganymede – hibernate is there a real guide somewhere
loaded a lot hardly any clarity something that obscure CAN not be good
tried a few years back the same NO result situation
think it’s crap