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.