
上QQ阅读APP看书,第一时间看更新
Installation on Linux
Installation of the JDK on Linux is easy and straightforward using apt-get:
- Update the package index of your computer. From your terminal, run:
sudo apt-get update
- Check whether Java is already installed by running the following:
java -version
- You'll know Java is installed if the version information for a Java install on your system is printed. If no version is currently installed, run:
sudo apt-get install default-jdk
That's it! The JDK will be installed on your computer.