Skip to content

jar无法正常打开 #6

@LiKaishenzhen

Description

@LiKaishenzhen

在命令里面运行,但是报错:缺少 JavaFX 运行时组件, 需要使用该组件来运行此应用程序,安装JavaFX之后,再次运行,但是报错:
错误: 找不到或无法加载主类 –jar
原因: java.lang.ClassNotFoundException: –jar
想问下是否有遇到类似情况的人,谢谢!
附代码:#运行jar
F:\WechatTake\ChatViewTools_v1>java -jar chatViewTool.jar
#安装JavaFx
java.exe --module-path "S:\Java\Javafx\lib" --add-modules=javafx.swing,javafx.graphics,javafx.fxml,javafx.media,javafx.web --add-reads javafx.graphics=ALL-UNNAMED --add-opens javafx.controls/com.sun.javafx.charts=ALL-UNNAMED --add-opens javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED --add-opens javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED --add-opens javafx.graphics/com.sun.javafx.css=ALL-UNNAMED --add-opens javafx.base/com.sun.javafx.runtime=ALL-UNNAMED –jar chatViewTool.jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions