首页 > 解决方案 > ScenicView 不显示应用程序

问题描述

我正在尝试使用 ScenicView 11,但它没有显示应用程序。跑步时我得到

Platform running
Launching ScenicView v11.0.2
Startup done
Creating server
Server done
Number of running Java applications found: 4
Obtaining properties for Java application with PID:13060
Obtaining properties for Java application with PID:14856
Obtaining properties for Java application with PID:6140
1 JavaFX applications found
Loading agent from: C:\ScenicView\scenicview\lib\scenicview.jar
Loading agent for:sun.tools.attach.AttachProviderImpl@40ffae21: 13060 ID:13060 on port:7559 took:101ms using agent defined in C:\ScenicView\scenicview\lib\scenicview.jar
Remote agent started on port:7559
RemoteApp connected on:7558 stageID:StageID [appID=13060, stageID=984143142, name=null]

扫描 JavaFX 应用程序的旋转进度条将永远保留在那里。我发现ScenicView 8.7.0 没有在其中加载打开的 JAVA FX 应用程序来检查元素,但我的应用程序没有使用 Swing。然而,当 ScenicView 运行并启动我的应用程序时,我得到了

Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: javafx/embed/swing/SwingFXUtils
    at org.fxconnector.node.SVDummyNode.convertToAwtImage(SVDummyNode.java:154)
    at org.fxconnector.node.SVDummyNode.setRemote(SVDummyNode.java:139)
    at org.fxconnector.StageControllerImpl.update(StageControllerImpl.java:355)
    at org.fxconnector.StageControllerImpl.setEventDispatcher(StageControllerImpl.java:309)
    at org.fxconnector.remote.RuntimeAttach$1.lambda$setEventDispatcher$4(RuntimeAttach.java:113)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    at java.base/java.lang.Thread.run(Thread.java:832)
Caused by: java.lang.ClassNotFoundException: javafx.embed.swing.SwingFXUtils
    at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606)
    at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 12 more
Exception in thread "JavaFX Application Thread" java.lang.NoClassDefFoundError: javafx/embed/swing/SwingFXUtils
    at org.fxconnector.node.SVDummyNode.convertToAwtImage(SVDummyNode.java:154)
    at org.fxconnector.node.SVDummyNode.setRemote(SVDummyNode.java:139)
    at org.fxconnector.StageControllerImpl.update(StageControllerImpl.java:355)
    at org.fxconnector.StageControllerImpl.configurationUpdated(StageControllerImpl.java:592)
    at org.fxconnector.remote.RuntimeAttach$1.lambda$configurationUpdated$1(RuntimeAttach.java:99)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(WinApplication.java:174)
    at java.base/java.lang.Thread.run(Thread.java:832)

但这些不是来自我的应用程序。我尝试了从 Eclipse 和作为 jar 启动,但都没有工作。使用 JavaFX 14/15 和 JDK 15。有什么想法吗?

标签: javajavafx

解决方案


推荐阅读