环境
WSAD 5.1
JDK1.3
hibernate2.1.3
hibernate-extensions2.1.3
运行hibernate-extensions控制台时出现如下错误:
JGoodies Looks: The ClearLook(tm) mode has been set to 'On'.
java.lang.NoClassDefFoundError: javax/swing/TransferHandler
at org.jgraph.JGraph.updateUI(Unknown Source)
at org.jgraph.JGraph.<init>(Unknown Source)
at org.jgraph.JGraph.<init>(Unknown Source)
at org.jgraph.JGraph.<init>(Unknown Source)
at org.jgraph.JGraph.<init>(Unknown Source)
at net.sf.hibernate.console.views.GraphView.<init>(GraphView.java:47)
at net.sf.hibernate.console.Start.buildConfigGraph(Start.java:495)
at net.sf.hibernate.console.Start.buildViews(Start.java:396)
at net.sf.hibernate.console.Start.setupUI(Start.java:328)
at net.sf.hibernate.console.Start.start(Start.java:309)
at net.sf.hibernate.console.Start.startWith(Start.java:272)
at net.sf.hibernate.console.Start.startWith(Start.java:276)
at com.gzt.hibernateUtil.StartHibern8IDE.main(StartHibern8IDE.java:42)
-------------------------------------------------------------
我想应该是JDK1.3里没有javax/swing/TransferHandler这个类,好像JDK1.5才有,我应该怎么办才能正常运行它!
------解决方法--------------------------------------------------------
装1.5嘛
------解决方法--------------------------------------------------------
UserInfo.hbm.xml 注意文件名大小写
------解决方法--------------------------------------------------------
装1.5没用。。。WSAD 5.1整个运行环境都不支持。。他生成的配置文件也都不支持1.5所以强制运行是没有用的。你可以把1.5的包放到LIB下有可能会找到 TransferHandler类但是这没有用。服务器等其他配置文件都不兼容1.5!
------解决方法--------------------------------------------------------
你要用 WSAD 5.1 就放弃用JDK1.4 1.5把。你要用1.4就用RAD6.0把。1.5的话就用 eclipse 3.12 配Tomcat5.5+JDK1.5