Sotirios-Efstathios Maneas

About Sotirios-Efstathios Maneas

Sotirios-Efstathios (Stathis) Maneas is a postgraduate student at the Department of Informatics and Telecommunications of The National and Kapodistrian University of Athens. His main interests include distributed systems, web crawling, model checking, operating systems, programming languages and web applications.

Java offline installer – How to install Java in Windows

In this tutorial we will show you how to install the latest Java version in Windows, using the Java offline installer. The Java offline installer is an executable file that contains all necessary files required for a complete installation.

An internet connection is required, in order for the offline installer to be downloaded. Once the installer is downloaded, the computer does not need to remain connected to the Internet. Also, the downloaded installer can be copied to another computer, which it doesn’t have access to the Internet.

This tutorial applies to all Windows versions after 2000 and to Java 6.0 and 7.0 versions.

1. Download the Java offline installer

  • First of all, you must visit the manual download page here.
  • Find the offline installer for Windows and click on the version that corresponds to your machine’s architecture, either 32-bit or 64-bit.
  • In the appearing dialog box, click Save, in order to download the file to your local system.
  • Close all running applications, including the web browser.

2. Install Java

Once the download procedure is complete, we are ready to install Java in our machine. Navigate to the folder where the executable file is located and double click on it. Notice that the installation requires administration privileges in order to proceed.

The installation process has started. In the welcome screen, click on the Install button, in order to accept the license terms and continue with the installation. Leave the Change destination folder option unchecked.

welcome_screen_WM

Wait for the installation to complete:

installation_screen_WM

If the installation procedure is successful, you shall see the following dialog box:

post_installation_screen_WM

Click on the Close button to end the installation. A new tab will be opened in your web browser that aims to verify your installation:

browser_verification_WM

3. Verify the installation

In the opened tab of your web browser, click on the Verify Java Version button. In case you see the following error message

verification_failure_WM

there is an error with the verification procedure. This error may be caused by a configuration issue. Try restarting your browser before trying to verify the installation again or follow the troubleshooting instructions in here.

Important: The verification error does not imply that Java has not been successfully installed in your computer.

4. Add the JAVA_HOME environment variable

The last thing we have to do is to add a new environment variable, called JAVA_HOME and set its value to point to the Java JDK installation folder. The default installation folder of Java is C:\Program Files\Java.

In order to add a new environment variable on Windows 7, we must complete the following steps:

  • Right click on the Computer icon on your Desktop and choose the Properties option.
  • In the System window, in the left panel, click on Advanced system settings.
  • In the System Properties window, select the Advanced tab and click on the Environment Variables… button, located at the bottom right of the window.
  • In the Environment Variables window, in the System variables section, click on the New button and fill the appropriate fields.

If the procedure has been completed successfully, a new environment variable will have been added, as highlighted:

maven_java_WM

Once the JAVA_HOME environmental variable is added successfully, open the Windows command line and execute the following command:

java –version

A sample output of the command is shown below:

java_cmd_WM

 
This was a tutorial on how to download the Java JDK offline installer and install Java in Windows.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.
Examples Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Examples Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Examples Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close