java - jpackage not found - mac OS
问题描述
I'm trying to make my .jar file with the javafx stuff into an executable application, but when I try to do jpackage on the command line, I'm getting command not found. I've downloaded the latest jdk-15.0.1_osx-x64_bin.dmg from Oracle.
解决方案
Although some Java commands are defined (eg java, javac) And are in the local /usr/bin directory, they only contain commands that were in the Java 6 release (including eg appletviewer).
Newer commands that were added in later Java releases like jmod, jlink etc aren’t available in the path. I’ve raised a radar (bug) at Apple a few years ago And the response was “so?” — don’t hold your breath.
To run these commands you will need to add the Home/bin directory of your install (under /Library/Java/JavaVirtual/Machines) to your PATH environment variable. You can also use /usr/libexec/java_home to find the path of the installed JVM automatically.
推荐阅读
- python - 始终从 clf 模型中获取相同的数据。如何使用 sklearn 正确克隆?
- powershell - 将文本文件中的内容添加到变量内容的末尾
- javascript - 尽管不存在错误,但 Google 脚本不会触发电子邮件警报
- python - 如何在python中将画布的内容导出到ps
- c# - 如何根据另一个列表中的索引从列表中获取子列表?
- windows - 永久添加 PowerShell 模块?(导入模块)
- python - 如何连接具有相同行数的 numpy.ndarray 和 scipy.sparse.csr.csr_matrix?
- python - 有什么好的方法可以创建一个简单但好看的网页,该网页构建 Excel 文件的报告并显示 Pandas 数据框和绘图?
- tensorflow - 将 TensorFlow 分布更新为 TensorFlow 概率
- javascript - 如果元素必须换行,则将 flexbox 子元素的宽度扩大到 100% - jquery 或 javascript?