有学有练才叫学习:学而不思则罔,思而不学则殆:学而不习,纸上谈兵,习而不进,画地为牢!

linux安装jdk11

服务端 cat 2个月前 (07-28) 546次浏览 已收录 4个评论 扫描二维码

JDK 依赖包:

yum install glibc.i686

卸载原有的 JDK

查看本机已安装软件:rpm -qa
查看与java相关的软件:rpm -qa | grep java
删除自带软件:rpm -e --nodeps xxx // xxx软件名

安装 JDK

上传 jdk1.7.tar 到 /usr/local/src/java/
解压 tar -zxvf jdk1.7.tar.gz //若没有.gz 则将-zxvf改为 -xvf 即可

配置环境变量

vim /etc/profile
添加如下代码:

set java environment

JAVA_HOME=/usr/local/src/java/jdk1.7
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH

使更改的配置立即生效: source/etc/profile
查看JDK版本:java -version
喜欢 (0)
cat
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(4)个小伙伴在吐槽
  1. First off I want to say fantastic blog! I had a quick question that I'd like to ask if you do not mind. I was curious to know how you center yourself and clear your mind prior to writing. I have had a tough time clearing my mind in getting my thoughts out. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are lost just trying to figure out how to begin. Any recommendations or tips? Appreciate it!
    instagram followers generator no verification2022-07-29 12:37 回复 Mac OS X | Firefox浏览器 102.0
    • cat
      I also have problems in my work, and then I can summarize them casually and stick to them
      cat2022-07-30 15:34 回复 Windows 10 | Firefox浏览器 103.0
  2. Id like to thank you for the efforts you have put in penning this blog. Im hoping to view the same high-grade content by you in the future as well. In truth, your creative writing abilities has encouraged me to get my very own site now ;)
    israelnightclub.com2022-08-17 11:42 回复 Mac OS X | Firefox浏览器 43.0
  3. Good write-up. I absolutely love this site. Stick with it!
    israel-lady.co.il2022-08-30 01:22 回复 Windows 7 | Chrome 46.10.2490.86