由于出现以下异常消息,所以我无法运行JPad(http://jpad.io)。
您建议使用什么版本的Java?

    $> java -jar jpad.jar
    Nov 05, 2016 3:22:39 PM com.timestored.docs.OpenDocumentsModel addDocument
    INFO: addDocument: new 1
    Nov 05, 2016 3:22:40 PM io.jpad.JPadLauncher launch
    INFO: Starting JPadLauncher  launch() ###################################
    Nov 05, 2016 3:22:40 PM io.jpad.JPadFrame <init>
    INFO: Starting JPadFrame Constructor
    Nov 05, 2016 3:22:42 PM com.timestored.misc.ErrorReporter$UncaughtErrorReporter uncaughtException
    WARNING: uncaught error
    java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1321)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1296)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1348)
        at io.jpad.JPadLauncher.main(JPadLauncher.java:81)
    Caused by: java.lang.NoClassDefFoundError: javafx/scene/Parent
        at io.jpad.JPadFrame.<init>(JPadFrame.java:177)
        at io.jpad.JPadLauncher.launch(JPadLauncher.java:110)
        at io.jpad.JPadLauncher.access$200(JPadLauncher.java:31)
        at io.jpad.JPadLauncher$2.run(JPadLauncher.java:83)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
        at java.awt.EventQueue.access$500(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:709)
        at java.awt.EventQueue$3.run(EventQueue.java:703)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: java.lang.ClassNotFoundException: javafx.scene.Parent
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 18 more


(我正在播报此问题,因为大多数jpad的菜鸟海报没有创建标签的1500代表)

最佳答案

JPad​​依靠javafx来显示HTML结果。这些库并不是JVM上的所有版本,尤其是OpenJDK。

我正在运行Arch Linux,我注意到堆栈跟踪提到了如何无法在JFX类中找到方法,因此我想我会借此机会看看我的存储库中是否包含JFX包,而他们确实做到了。我安装了它,然后再试一次,看来已经成功了。

07-24 09:39