我正在尝试使用 JWebBrowser,但出现以下错误:
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/events/MouseListener
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.getDeclaredConstructor(Unknown Source)
at chrriis.dj.nativeswing.swtimpl.internal.NativeCoreObjectFactory.create(NativeCoreObjectFactory.java:36)
at chrriis.dj.nativeswing.swtimpl.components.JWebBrowser.<init>(JWebBrowser.java:189)
at com.js.summative.Main.<init>(Main.java:39)
at com.js.summative.Runner.main(Runner.java:30)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.events.MouseListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 8 more
从我可以在线收集的内容来看,这并不多,我需要使用swt.jar
我找到并实施到我的构建路径中的内容,但这没有任何好处。这里有什么问题?