• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

Linux/Windows系统安装最新版JAVA教程

建站知识 Liam 1年前 (2019-04-29) 352次浏览 9个评论 扫描二维码

说明:我们很多时候都需要用到JAVA环境,这里博主就记录下安装过程。

1、获取最新版JAVA下载链接
首先进入JAVA下载地址:点击进入,再点击中间框框右下角的JDK Download按钮进入下载界面,然后点击Accept License Agreement,这时候就可以点击一下对应版本的JAVA JDK包,浏览器下载器会弹出来文件下载,这时候就可以复制下载链接了。

注意别直接将jdk包的超链接当成下载链接,这样下载会出错的。

2、Linux安装
这里CentOSDebianUbuntu等常见Linux系统都可以用以下方法安装JAVA

#下载JAVA JRE包,将你获取的链接替换到后面,下载链接通常为http://xx/jdk_linux-x64.tar.gz?AuthParam=xx wget -O jdk.tar.gz http://xx/jdk_linux-x64.tar.gz?AuthParam=xx #解压文件 tar -zxvf jdk.tar.gz #记住这时候解压出的文件夹路径,比如目前为/root/jdk1.8.0_191

编辑/etc/profile文件:

nano /etc/profile

在后面添加以下代码:

#前2行后面的参数为解压出的JAVA文件夹路径 JAVA_HOME=/root/jdk1.8.0_191 export JRE_HOME=/root/jdk1.8.0_191/jre  export CLASSPATH=$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH  export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

使配置生效:

source /etc/profile

查看JAVA版本:

java -version 

3、Windows系统安装
获取JAVA JRE包的方法参考上面,然后直接下载Win版本的点击安装即可。


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Linux/Windows系统安装最新版JAVA教程
喜欢 (0)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

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

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(9)个小伙伴在吐槽
  1. Hey just wanted to give you a quick heads up and let you know a few of the pictures aren't loading properly. I'm not sure why but I think its a linking issue. I've tried it in two different browsers and both show the same outcome.
    black mass2020-08-28 21:54 回复 Windows 7 | Internet Explorer 10.0
  2. It's hard to find well-informed people about this subject, however, you sound like you know what you're talking about! Thanks
    black mass2020-08-28 21:28 回复 Mac OS X | Chrome 66.0.3359.181
  3. Wow! After all I got a website from where I be capable of actually get helpful facts concerning my study and knowledge.
    cheap flights2020-08-28 12:40 回复 Mac OS X | Chrome 66.0.3359.117
  4. Very good information. Lucky me I found your site by chance (stumbleupon). I have saved as a favorite for later!
    cheap flights2020-08-27 03:15 回复 Linux | Chrome 66.0.3359.158
  5. Wow that was unusual. I just wrote an really long comment but after I clicked submit my comment didn't appear. Grrrr... well I'm not writing all that over again. Regardless, just wanted to say fantastic blog!
    cheap flights2020-08-26 17:16 回复 Linux | Chrome 66.0.3359.181
  6. It's amazing to pay a quick visit this web site and reading the views of all friends about this post, while I am also keen of getting experience.
    best web hosting2020-08-26 06:09 回复 Linux | Firefox浏览器 2.0.0.6
  7. I really love your site.. Great colors & theme. Did you create this website yourself? Please reply back as I'm wanting to create my own blog and would like to find out where you got this from or what the theme is called. Cheers!
    hosting services2020-08-14 14:17 回复 Linux | Chrome 66.0.3359.170
  8. I am sure this post has touched all the internet people, its really really nice piece of writing on building up new weblog. adreamoftrains web host
    adreamoftrains web hosting service2020-08-12 11:14 回复 Windows 7 | 360浏览器 SE
  9. My partner and I stumbled over here by a different page and thought I might as well check things out. I like what I see so now i am following you. Look forward to finding out about your web page yet again.
    web hosting companies2020-08-11 23:20 回复 Windows 7 | Internet Explorer 10.0