JavaFX jpackage 应用程序出现错误 -10810
error -10810 with JavaFX jpackage application
这是我制作可执行应用程序的命令:jpackage --input Desktop/java\ project --main-jar javaproject.jar --module-path /Users/Denton/Desktop/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml
我在 MacOS 上,尝试打开它时出现以下错误:
LSOpenURLsWithRole() failed with error -10810
在命令行上。我不完全确定我的命令是否正确。
(如果需要,)info.plist 文件是:
<?xml version="1.0" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSMinimumSystemVersion</key>
<string>10.9</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleExecutable</key>
<string>Main</string>
<key>CFBundleIconFile</key>
<string>Main.icns</string>
<key>CFBundleIdentifier</key>
<string>application</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Main</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<!-- See https://developer.apple.com/app-store/categories/ for list of AppStore categories -->
<key>LSApplicationCategoryType</key>
<string>Unknown</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2021</string>
<key>NSHighResolutionCapable</key>
<string>true</string>
</dict>
</plist>
.jar 文件在命令行上运行命令:java --module-path /Users/Denton/Desktop/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml -jar Desktop/java \project javaproject.jar
jpackage 在这方面存在问题。也许使用 16-ea 版本的最新版本会有所帮助。
必须下载 jmod 并将其用于 --module-path。
这是我制作可执行应用程序的命令:jpackage --input Desktop/java\ project --main-jar javaproject.jar --module-path /Users/Denton/Desktop/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml
我在 MacOS 上,尝试打开它时出现以下错误:
LSOpenURLsWithRole() failed with error -10810
在命令行上。我不完全确定我的命令是否正确。
(如果需要,)info.plist 文件是:
<?xml version="1.0" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>LSMinimumSystemVersion</key>
<string>10.9</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleAllowMixedLocalizations</key>
<true/>
<key>CFBundleExecutable</key>
<string>Main</string>
<key>CFBundleIconFile</key>
<string>Main.icns</string>
<key>CFBundleIdentifier</key>
<string>application</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>Main</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<!-- See https://developer.apple.com/app-store/categories/ for list of AppStore categories -->
<key>LSApplicationCategoryType</key>
<string>Unknown</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright (C) 2021</string>
<key>NSHighResolutionCapable</key>
<string>true</string>
</dict>
</plist>
.jar 文件在命令行上运行命令:java --module-path /Users/Denton/Desktop/javafx-sdk-15.0.1/lib --add-modules javafx.controls,javafx.fxml -jar Desktop/java \project javaproject.jar
jpackage 在这方面存在问题。也许使用 16-ea 版本的最新版本会有所帮助。
必须下载 jmod 并将其用于 --module-path。