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.
Click Next.
You will be asked for the installation destination, so if you want to change it, change it.
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.
It's an advertisement that Java is used a lot.
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.
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