简体   繁体   English

JavaFX NoClassDefFoundError zap 插件浏览器视图

[英]JavaFX NoClassDefFoundError zap plugin Browser View

I want to use the Browser View Plugin for Owasp Zap, but getting the following error:我想为 Owasp Zap 使用浏览器视图插件,但出现以下错误:

19529 [ZAP-BootstrapGUI] WARN  org.zaproxy.zap.extension.browserView.ExtensionHttpPanelBrowserView - Unable to use JavaFX:
java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel

I have openjfx , openjfx-source , libopenjfx-jni , libopenjfx-java , libcontrolsfx-java and libeasybind-java installed.我安装了openjfx 、 openjfx openjfx-sourcelibopenjfx-jnilibopenjfx-javalibcontrolsfx-javalibeasybind-java I also have tried it with openjdk8 and 14. My system is Ubuntu 20.10, but I also get the same error when I use the machines from tryhackme .我也尝试过使用 openjdk8 和 14。我的系统是 Ubuntu 20.10,但是当我使用来自tryhackme的机器时,我也遇到了同样的错误。

Thanks for your help谢谢你的帮助

In order yo use the Browser view add-on you have to install JavaFX.为了使用浏览器视图插件,您必须安装 JavaFX。

sudo apt install openjfx for Ubuntu. sudo apt install openjfx openjfx for Ubuntu。

You may also need to set the jfx path ( https://openjfx.io/openjfx-docs/#install-javafx ): export PATH_TO_FX=path/to/javafx/lib您可能还需要设置 jfx 路径( https://openjfx.io/openjfx-docs/#install-javafx ): export PATH_TO_FX=path/to/javafx/lib

Per: https://github.com/zaproxy/zaproxy/issues/6339#issuecomment-758173453 , you may also need to start ZAP as follows (or edit the shell script to do the same): $ java --module-path /usr/share/openjfx/lib/ --add-modules javafx.swing,javafx.web zap.jar Per: https://github.com/zaproxy/zaproxy/issues/6339#issuecomment-758173453 , you may also need to start ZAP as follows (or edit the shell script to do the same): $ java --module-path /usr/share/openjfx/lib/ --add-modules javafx.swing,javafx.web zap.jar

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM