java - 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。有什么想法吗?
解决方案
推荐阅读
- javascript - 如何将属性从反应组件传递给其父级?
- concatenation - 用MYSQL中多行的连接值更新新列
- mysql - macOS (BigSur) - 安装 MySQL ODBC 驱动程序以将 mysql db 连接到 Tableau
- android - Android-Kotlin:启动和停止任务循环执行的最佳方式,从结束后每隔几秒重复一次
- javascript - Javascript函数重新加载页面
- python - celery 没有检测到关闭的代理连接并在一段时间后冻结
- stm32 - 带有 DMA 的 STM32 I2C 传输已完成,但 DMA 中断程序不工作
- reactjs - 如何在 React TS 中为组件库创建声明文件?
- javascript - 我的 React 函数被调用了两次,第二次调用设置值不正确
- java - 为什么我得到 java.lang.NullPointerException?