How to install JDK 8 on Windows without using the installer

How to install JDK 8 on Windows without using the installer

We will introduce how to install (use) the JDK on Windows without using the JDK (Java SE Development Kit) installer (exe file).

Tried environment

OS: Windows10 64-bit JDK:Java SE Development Kit 8u121

Benefits of this method

-Easy switching when developing using multiple JDKs. -You do not have to receive notifications prompting you to upgrade Java.

procedure

1. 1. Download the JDK

Download the JDK for Windows from the Oracle site normally. This time, I downloaded "jdk-8u121-windows-x64.exe" according to the environment.

2. Change the downloaded exe file to zip

Rename the file to change the file extension ".exe" to ".zip".

3. 3. Prepare zip decompression software

Since the decompression function installed in Windows cannot be decompressed well, prepare zip decompression software. This time, I used "7Zip". Click here for the source → https://sevenzip.osdn.jp/

4. Unzip the zip file

Save the file unzipped with 7Zip to a location of your choice. A warning such as "The file cannot be opened as a [zip] archive" is displayed, but don't worry.

5. Extract the CAB file from the unzipped file as needed (* 1)

_ * 1: If "tools.zip" exists in the unzipped folder, this work is not necessary. When I tried it with "jdk-7u51-windows-i586.exe", "tools.zip" was completed when it was unzipped. It seems that it depends on the version of JDK. _

Run the following command:

cd [Unzipped folder path]\.rsrc\1033\JAVA_CAB10
extrac32 111

6. Unzip "tools.zip" and convert it to a jar file

Unzip "tools.zip" in the "[Unzipped folder path] \ .rsrc \ 1033 \ JAVA_CAB10" folder, and execute the following command to convert the .pack file to a .jar file.

cd [Unzipped folder path]\.rsrc\1033\JAVA_CAB10\tools
for /r %x in (*.pack) do .\bin\unpack200 -r "%x" "%~dx%~px%~nx.jar"

7. Move / rename the "tools" folder to a location of your choice

Move the files and folders in the tools folder to any location you like. In this example, it is "C: \ Java \ jdk-8u121". ↓ It looks like this. 20170315_01.png

8. Set environment variables and check with java -version command

↓ Add JAVA_HOME as an environment variable. 20170315_02.png

↓ Add JAVA_HOME to Path. 20170315_03.png

↓ Check the version with the "java -version" command. 20170315_04.png

that's all.

Recommended Posts

How to install JDK 8 on Windows without using the installer
How to install JDK8-10 (Mac)
Install MySQL 5.6 on CentOS6 [How to specify the version]
[Java] How to update Java on Windows
How to install MariaDB 10.4 on CentOS 8
How to install WildFly on Ubuntu 18.04
How to install and configure the monitoring tool "Graphite" on Ubuntu
How to install Eclipse (Photon) on Mac
How to change the timezone on Ubuntu
How to install the legacy version [Java]
How to install kafkacat on Amazon Linux2
How to place geckodriver (Selenium WebDriver) on the path using Maven command
[Android] How to turn the Notification panel on and off using StatusBarManager
[Swift] How to set an image in the background without using UIImageView.
[Ruby On Rails] How to search the contents of params using include?
How to install network drivers on standalone Ubuntu
How to install NVIDIA driver on Ubuntu 18.04 (Note)
How to implement the breadcrumb function using gretel
How to install multiple JDKs on Ubuntu 18.04 LTS
How to Install Oracle JDK 1.8 in Ubuntu 18.04 LTS?
[Ruby on Rails] How to install Bootstrap in Rails
[Java] Memo on how to write the source
[Even beginners can do it! ] How to create Java environment on Windows 10 (JDK14.0.1)
How to share on the host side (windows) and guest side (CentOS 7) with VirtualBox
Install Corretto 8 on Windows
How to install Docker
How to install docker-machine
How to install MySQL
How to install ngrok
How to install Ruby on an EC2 instance on AWS
[Ruby on Rails] How to change the column name
How to install the root certificate of Centos7 (Cybertrust)
How to install NVIDIA driver on Ubuntu ssh destination
How to install geckodriver (Selenium WebDriver) automatically using WebDriverManager
Organized how to interact with the JDK in stages
How to start TOMCAT by specifying JAVA_HOME on Windows
How to start tomcat local server without using eclipse
How to use Play Framework without using typesafe activator
[Rails] How to install a decorator using gem draper
[Even beginners can do it! ] How to install Eclipse on Windows 10 (Java environment construction)
Install Docker on Windows 10 PRO
[For beginners] Install JDK + Eclipse on Mac (without Pleiades All-in-One)
Deploy Spring Boot applications to Heroku without using the Heroku CLI
[Rails] How to install devise
I want to use Java Applet easily on the command line without using an IDE
How to deploy on heroku
How to Install Elixir and Phoenix Framework on Ubuntu 20.04 LTS
How to develop separately into Xib files without using Storyboard
How to run npm install on all projects in Lerna
How to Burning a Install Disk of Windows from Ubuntu
How to install Boots Faces
How to disable Set-Cookie from API on the front side
How to add elements without specifying the length of the array
How to output array values without using a for statement
I want to put the JDK on my Mac PC
[Ruby On Rails] How to update the calculated result to an integer type column using update_column
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
How to change the contents of the jar file without decompressing
How to join a table without using DBFlute and sql
How to switch Java in the OpenJDK era on Mac
How to install GNOME as a desktop environment on CentOS 7