Install Java 9 on windows 10 and CentOS 7

Recently, the programming language Java version 9 came out.

I'm installing the JDK right away.

My current environment is windows and the rental server is CentOS7, so

Install for those two OSs

I would like to try until the version is displayed.

Then, I would like to do it.

Click here for download link

Java SE Downloads http://www.oracle.com/technetwork/java/javase/downloads/index.html

Java SE Development Kit 9 Downloads http://www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

** Installation example on Windows 10 **

Click the Java SE Development Kit 9 Downloads link above

The following screen will appear. Select the Accept License Agreement radio button.

Then download the windows x64 file.

First, double-click the downloaded file to start the installation.

install0.jpg

Click Next.

install1.jpg

install2.jpg

You will be asked for the installation destination, so if you want to change it, change it.

install3.jpg

Next, you will be asked where to install jre, so I will put it in.

There are various browsers that appear on the custom setup screen, but which one are you pointing to? I'm not sure, but I'll move on without worrying about it.

install4.jpg

It's an advertisement that Java is used a lot.

install5.jpg

It seems that the installation is completed, but by the way, when you click the next step,

The following site has opened.

http://docs.oracle.com/javase/9/index.html

I'll put a capture on it.

install6.jpg

install7.jpg

Finally, check your Java installation in the console.

$ java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

In this way, if you get out, you can confirm that the installation is completed.

CentOS7

There are two ways to install Java 9 in CentOS7, one is to install from the .tar.gz file, and the other is. How to install from .rpm file.

I'm not particular about it, but I'll do it with the rpm command.

First of all, download the file from Oracle anyway.

wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" \
http://download.oracle.com/otn-pub/java/jdk/9+181/jdk-9_linux-x64_bin.rpm \
-O jdk-9_linux-x64_bin.rpm

This is the above command, but this command is Java SE Development Kit 9 Downloads

On the page, it is a command that you can download while agreeing to the license.

So, I would like to be careful.

You have specified this version.

9 + 181 in a mess

It is the part of. I think it means the 181st release of java9,

This number will surely change due to security measures, so do not use the wget command. I think it's safer to download it with a browser and use it for the latest version.

Let's proceed first, as each individual should be careful about that area.

rpm -ivh jdk-9_linux-x64_bin.rpm

Preparing...                          ################################# [100%]
Updating / installing...
   1:jdk-9-2000:9-ga                  ################################# [100%]
Unpacking JAR files...
        plugin.jar...
        javaws.jar...
        deploy.jar...
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/16x16/apps/sun-java.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/16x16/apps/sun-javaws.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/48x48/apps/sun-java.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/48x48/apps/sun-javaws.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/HighContrast/16x16/apps/sun-java.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/HighContrast/16x16/apps/sun-javaws.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/HighContrast/48x48/apps/sun-java.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/HighContrast/48x48/apps/sun-javaws.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/48x48/apps/sun-java.png’: No such file or directory
cp: cannot stat ‘/usr/java/jdk-9/lib/desktop/icons/hicolor/48x48/apps/sun-javaws.png’: No such file or directory

It seems that there is no icon, or there is an image omission of the icon in this release.

Well, for now, I don't use images, so let's be patient with Oracle's response.

Then, I will confirm the version.

 java -version
java version "9"
Java(TM) SE Runtime Environment (build 9+181)
Java HotSpot(TM) 64-Bit Server VM (build 9+181, mixed mode)

Yes, I was able to successfully install it in CentOS 7.

that's all.

Recommended Posts

Install Java 9 on windows 10 and CentOS 7
Install Java with zip on Windows
Install Java Open JDK 8 on CentOS 7
Install Corretto 8 on Windows
Install Java on Mac
Install Golang on CentOS 8
Install Neo4j 4.1.3 on centOS
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
Install kuromoji on CentOS7
Install Mattermost on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Steps to install samba on CentOS 8 and connect from Windows 10 Explorer
Install java and android-sdk on Mac using homebrew
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
Install Docker on Windows 10 PRO
Install OpenJDK7 (JAVA) on ubuntu 14.04
Install Java on WSL Ubuntu 18.04
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Java version change on CentOS
Install Ruby 2.7 on CentOS 7 (SCL)
Install java 1.8.0 on Amazon linux2
Install java and maven using brew on new mac
I installed CentOS 8 on Windows 10 using VirtualBox and Vagrant
Try DPDK20 SDK on CentOS7 ①Install
Error when npm install on Windows 7
Enable Openjdk10 and maven on CentOS
Install JDK and JRE on Ubuntu 16.10
[Java] How to update Java on Windows
Install Ruby 2.5 on CentOS 7 using SCL
Note Book: OpenBLAS Install On Windows10
Install and configure jenv on macOS
How to install MariaDB 10.4 on CentOS 8
Install apache 2.4.46 from source on CentOS7
Steps to install MySQL 8 on CentOS 8
Install rsync on CentOS8 (version check) and file backup (synchronization)
Enable Java 8 and Java 11 SDKs on Ubuntu
Steps to install devtoolset-6 on CentOS 7
Note Book: VTK Install On Windows10
Notes on Java path and Package
Develop gRPC on Windows + Java 7 + Maven 2
Install Java development environment on Mac
Install the memcached plugin on MySQL and access it from Java
Install Golang / MariaDB on CentOS8, connect to DB and execute SQL
Install Docker and docker-compose on Raspberry Pi 4, Linux (Debian) and Windows 10, respectively
Upgrade and switch Ruby versions on Windows 10
If you can't install java on Catalina
Install docker and docker-compose on Alpine Linux
Install samba4 from source code on CentOS8
STS installation and Japanese localization on Windows 10
Change JDK and Tomcat versions on CentOS
Using JupyterLab + Java with WSL on Windows 10
Install OpenJDK (Java) on the latest Ubuntu
Install the webmail client Rainloop on CentOS 8
Install Java8 with Yum on Amazon Linux
Download and install Eclipse (Java) (Mac version)