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 环境,开始尝试安装 #101

Open
2944721178 opened this issue Nov 20, 2024 · 1 comment
Open

不存在 java 环境,开始尝试安装 #101

2944721178 opened this issue Nov 20, 2024 · 1 comment

Comments

@2944721178
Copy link

安装jdk,路径 /usr/java//
use profile /etc/profile
=> jdk 安装完成!
=> 最后您需要重启终端才能正常使用 java 环境

执行完这一步后,我重启了服务器,再执行脚本安装,提示:
开始检查 jdk
/usr/bin/which: no java in (/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/java///bin:/usr/java///bin)
不存在 java 环境,开始尝试安装
系统环境变量中已经存在 CLASSPATH,请检查配置是否正确.或者终端是否重新加载环境变量:source /etc/profile
重新加载环境变量后依旧不行
系统是:rocky9 mini

@bwcx-jzy
Copy link
Member

bwcx-jzy commented Dec 2, 2024

确定环境变量没有问题,可以尝试手动安装

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