How to install JDK on Linux OS

博主在软件测试课程中遇到Mooctest插件版本过旧的问题,由于其仅支持JDK1.8,而博主的Windows系统上是JDK13.0。为了解决这个问题,博主选择在Linux系统上安装JDK1.8,详细步骤包括从百度网盘下载JDK1.8并解压,配置环境变量和路径,以及安装Eclipse。在安装Eclipse后遇到了找不到Java虚拟机的错误,通过查阅资料解决了该问题。
摘要由CSDN通过智能技术生成

why I need to do such complexity job?
I have a course named software testing which is a practice course, and we have to use a plugin for eclipse named Mooctest. However, this plugin’s version is too old and it only apply to JDK under version 1.8. Unfortunately, the version on my Windows’ is 13.0. I don’t want to uninstall my java, so I decided to install it on my Linux OS.

Let’s Start

  1. Install jdk1.8
  2. Configuring environment Variables/ Path
  3. Install eclipse on Mooctest

1. Install jdk1.8 on Linux OS

 *suppose you have configure a linux os*

I don’t know why oracle ask you to login before download jdk, so I post my link on baiduNetDisk:
Link :https://pan.baidu.com/s/1pJyq-HYKuDLlC9TjYS1NbQ
code:usg6

Extract the tar
在这里插入图片描述
My path is

/home/chuchu/software/development/Java/jdk1.8.0_131

2 Configure Environment variables and path

It is different from the configuration on Windows OS:
You can’t do it on a graphical interface, you can only use terminal.
This video helped me a lot:
How to Install JDK on Ubuntu

Attention that don’t change the other things in profile!

3. Install eclipse

After starting it there’s an ERROR:

A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:

Here is the way to solve it:
ubuntu下启动eclipse报错:A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available

Thank You!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值