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

原因: java.lang.NoClassDefFoundError: javafx/application/Application #40

Open
kcufId opened this issue Jan 12, 2021 · 2 comments
Open

Comments

@kcufId
Copy link

kcufId commented Jan 12, 2021

老铁你好,我这java环境下直接运行总是出现这个错误,这个需要什么配置码?
java -jar ShiroExploit-v2.0.jar
错误: 找不到或无法加载主类 com.MainApp
原因: java.lang.NoClassDefFoundError: javafx/application/Application

java -version
java version "15.0.1" 2020-10-20
Java(TM) SE Runtime Environment (build 15.0.1+9-18)
Java HotSpot(TM) 64-Bit Server VM (build 15.0.1+9-18, mixed mode, sharing)

网上查了下没啥结果,看着像是缺个javafx库之类的,但是我也没听说java运行环境需要这个呀。我把这个库放到java安装对应目录内,运行后还是错误。

@H00H
Copy link

H00H commented Jan 12, 2021

换成jdk8就能运行了

@kcufId
Copy link
Author

kcufId commented Jan 13, 2021

换成jdk8就能运行了

感谢,装了jdk8能用了,多谢。

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

2 participants