Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在哪里可以找到扩展名为 .bin 的 jdk 或 jre?我在我的 ubuntu 网络服务器上需要它。
我试过了,但我得到的只是 .tar.gz ,提取后我得到的只是文件夹,没有可执行脚本。
只需将 JDK 提取tar.gz到您喜欢的任何地方。然后设置JAVA_HOME到该目录并将路径添加JAVA_HOME/bin到env. 这应该够了吧。
tar.gz
JAVA_HOME
JAVA_HOME/bin
env
使用which命令找到你的java位置,然后使用ls -l命令跟踪符号链接,你找到目标。
which
ls -l