Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错:找不到或无法加载主类 com.summersec.attack.UI.Main #41

Open
t1gress opened this issue Nov 17, 2022 · 4 comments
Open

Comments

@t1gress
Copy link

t1gress commented Nov 17, 2022

报错信息如下,包是从大佬的github直接down下来的,想问下大佬这个错误原因是什么

java -jar shiro_attack-4.5.6-SNAPSHOT-all.jar
错误: 找不到或无法加载主类 com.summersec.attack.UI.Main
原因: java.lang.NoClassDefFoundError: javafx/application/Application

java -version
java version "11.0.17" 2022-10-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.17 10-LTS-269)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17 10-LTS-269, mixed mode)

@JasonYanko8
Copy link

1

@SummerSec
Copy link
Owner

使用jdk8以下,jdk8以上没有javafx了。

@Reach-Z
Copy link

Reach-Z commented Mar 6, 2023

https://blog.csdn.net/qq_34444097/article/details/126556823 这里有解决办法,自己单独下载一个javafx
java --module-path [lib目录] --add-modules javafx.controls,javafx.fxml -jar [jar文件路径] 这样就能打开了 我的是ubuntu22.04 已经完美解决

@JasonYanko8
Copy link

@Reach-Z ok,解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants