Wednesday, September 17, 2008

A problem with HibernateTools of JBossTools on Eclipse Ganymede

Latest version of Hibernate Tools 3.2.3ga is broken. It's using nonexistent class SWTResourceUtil which existed in Eclipse Europa. Opening Hibernate views ends with

Java.lang.NoClassDefFoundError: org/eclipse/ui/internal/util/SWTResourceUtil at prg.hibernate.eclipse.console.workbench.xpl.AnyAdaptableLabelProvider.getImage( at org.eclipse.jface.viewers.WrappedViewerLabelProvider.getImage( at org.eclipse.jface.viewers.WrappedViewerLabelProvider.update( at org.eclipse.jface.viewers.ViewerColumn.refresh( at org.eclipse.jface.viewers.AbstractTreeViewer.doUpdateItem( at org.eclipse.jface.viewers.AbstractTreeViewer$ at
and more...

Some developers are now working for a fix but for now you can patch it by yourself. Find plugin org.eclipse.ui.workbench_xxxx.jar of previous version of Eclipse (3.3 for example) and open it with some ZIP extractor. Copy class org/eclipse/ui/internal/util/SWTResourceUtil.class to current plugin jar of your Ganymede installation and restart Eclipse.

Some say that Hibernate configuration plugin works slower than in Europa version but who cares as it works at least!(!)
The solution was taken from Hibernate bug report