gpt4 book ai didi

java - 无法运行 JPad - NoClassDefFoundError javafx 场景父级

转载 作者:行者123 更新时间:2023-12-01 09:15:46 24 4
gpt4 key购买 nike

由于以下异常消息,我无法运行 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 包,并且它们做过。我安装了它并再次尝试,似乎成功了。

关于java - 无法运行 JPad - NoClassDefFoundError javafx 场景父级,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40556015/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com