How To Install Java 1.7 On Windows 7

  1. Install Java On Windows 10
  2. Install Java For Windows 7

For those in a hurry go to the quick start summary at the end of the article.

This section provides a tutorial example on how to download and install JDK 1.7.0 (Java SE 7) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation. Downloading and installing JDK 1.7.0 (Java SE 1.7) on a Windows system is easy. Here is what I did on my Windows XP system in year 2012.

  • If you want to run Java programs, but not develop them, download the JRE. If you want to develop Java applications, download the Java Development Kit, or JDK. The JDK includes the JRE, so you do not have to download both separately. If you need the JRE on a server and do not want the ability to run RIAs, download the Java SE Server JRE.
  • Jre 1.7 free download - Java Runtime Environment (JRE), Java Runtime Environment (JRE) (64-Bit), 7-Zip, and many more programs.

Note: For those looking to install the latest version of Java on a 32-bit system, Java is not longer available for 32-bit operating systems. If you require 32-bit Java use an older version of Java, version 8.

What is Java?

Java is used to write and run computer programs and applications (apps) written in the Java programming language. Java is free. To run Java programs on Windows you need to install the Java Runtime Environment (JRE), or an equivalent. To write Java programs on Windows you need to install the Java Development Kit (JDK). The JDK includes the JRE. The JDK is required for Java Integrated Development Environments (IDEs). IDEs make writing, testing and debugging software easier. Links to some IDEs are given later. For more information about Java see the What is Java? page at www.java.com.

How To Install Java 1.7 On Windows 7
  • The free Java Runtime Environment (JRE) is for running Java software and Java based apps.
  • The free Java Development Kit (JDK) is used for compiling and developing Java software and apps, usually in an IDE.
  • The JDK comes with JRE.

Download and Installation of Oracle's Free Java Environment

Start installing Java on Windows by going to the Java Standard Edition (SE) Downloads page. At the Java downloads page select the Java Platform (JDK) download button which looks like this:

The current release of the Java JDK platform will be shown below the button. On clicking the button, a list of supported platforms will be shown.

How to install java

Before selecting a download file, click the Accept License Agreement option.

From the list of download files select jdk-X.Y.Z-windows-x64_bin.exe (where X.Y.Z is the current JDK version, e.g. jdk-13.0.2-windows-x64_bin.exe).

How to Check if 32 or 64 Bit Windows

If unsure whether you are running 32-bit or 64-bit Windows use the System option in Windows to find the System type:

  • Windows 10 - Type About in the search box (acesss search on the Start screen, via the Windows key). Open the About your PC app. Alternatively, select the Settings icon, then System, and select About. Then read the System type line.
  • Windows 8.1 - System type can be accessed via PC info from the settings icon on the charm bar.
  • Other versions of Windows - Via System and Security from Control Panel, under Basic Information.
Java

Run the Java Installer

Run (or Open) the EXE download file to install the JDK. (Alternatively save the file for running offline, for example to be taken and installed on another Windows machine.) Only run executable code from trusted sources, i.e. only download the Java installer from oracle.com.

When the Java installation program runs, Windows may display the User Account Control (UAC) dialog. At the UAC dialog enter the machine admin password and select Yes.

The Java set up screens will be shown. You will need to select the Next button to get through the screens. (You shouldn't need to change any options presented. Older Java installers sometimes came bundled with a third party browser tool bar. We recommend you deselect that option if it appears). If you want to install the JDK and JRE to a different directory other than C:Program FilesJava then select the Change button on the appropriate set up screen to enter or select a different location.

The progress bar is displayed as the JDK and then the JRE is installed.

Once installed click the Close button. (The Next Steps button opens a browser). Java is now installed and ready to run Java programs. Java source code can be compiled into programs.

Optionally Set the JAVA_HOME Environment Variable

Setting the JAVA_HOME environment variable may be required because on some Windows PCs. This is because Java apps may have trouble accessing the Java JDK. To set the JAVA_HOME environment variable:

  • To access the Environment Variables in Windows go to the search box and type env then select Edit environment variables for your account.
  • Alternativley, select System and Security from Control Panel, then System. Click on Advanced system settings (under Control Panel Home on the left). On the System Properties window the Advanced tab should be set, click the Environment Variables button. You may require administrator rights to add the new environment variable setting.

Under System variables (or User variables) click the New button. Enter JAVA_HOME in Variable name then enter the path to the Java JDK in Variable value (e.g. C:Program FilesJavajdk-13.0.2, or the actual install location if it was changed). Enter the value for your system. Click OK to close the dialogs.

Checking that Java is Installed on Windows

If you need to check that Java has installed correctly, use the command line shell (Command Prompt aka DOS Prompt). Open a Command Prompt box:

  • Windows 10 and 8.1 - At the search box type com to find the Command Prompt.
  • Other Windows versions - In the Accessories folder select Command Prompt.
  • Alternative ways to start the Command Prompt - Start cmd.exe in the Windows/System32 directory. Or press the Windows key and R and type cmd then Enter in the Run box.

At the prompt, change directory, to the bin directory at the install location. Type java -version and press enter. If installed correctly Java will display the current version number. It is shown in the form 1.X.0_YY (where X is the release version and YY is the update number).

Type exit then press Enter (Return) to close the command prompt.

Adding the Java bin directory to the end of Path environment variable is needed by some apps (see JAVA_HOME, above, for details on accessing the environment variables). E.g. adding C:Program FilesJavajdk-13.0.2bin as another path entry.

Writing Java Programs

To produce Java software you need to write Java code. Use a text editor such as Windows Notepad, or even better Notepad++. Alternatively jEdit is an editor written in Java. For more productivity use an IDE. IDEs such as Eclipse, NetBeans or IntelliJ IDEA are designed to help with writing, testing and debugging programs. Programming environments BlueJ and Greenfoot are useful for beginners. All of these are free to download and use.

Hopefully installing Java on Windows has been easy. You are now ready to run and write Java Powered programs.

Quick Start Summary on Installing Java on Windows

  • Go to the Java SE Downloads Page.
  • Click the Java Download button.
  • Click the radio button to accept the licence.
  • Select the 64-bit (Windows x64) EXE download file.
  • Run the EXE.
  • Accept the UAC dialog.
  • Accept the Java installer prompts.
  • Press Close to exit the installer once complete.
  • Optionally set the JAVA_HOME environment variable.
  • Optionally add the Java bin directory to the Path environment variable.

See Also

  • For a full list of all the articles in Tek Eye see the full site Index.
How to install jre 1.7

Archived comments

Kerry Home on the 21st October 2019 said - There is no option to chose a 32 bit version.

Tek Eye's reply - Thanks, I have updated the article to account for the removal of the 32-bit version of Java.

Downloading and Installing JDK 1.7.0 on Windows

This section provides a tutorial example on how to download and install JDK 1.7.0 (Java SE 7) on a Windows XP system. A simple Java program was entered, compiled, and executed with the new JDK installation.

Downloading and installing JDK 1.7.0 (Java SE 1.7) on a Windows system is easy. Here is what I did on my Windows 7 system:

  • Open the Java SE Download page with this URL: http://www.oracle.com/technetwork/java/javase/downloads/.
  • Click the Download button under JDK in the 'Java SE 7' section. You will see the 'Java SE Development Kit 7 Downloads' page.
  • Click the download icon in 'Windows x86 - jdk-7u45-windows-i586.exe' line.
  • Save jdk-7u45-windows-i586.exe to a temporary directory.
  • Double-click on jdk-7u45-windows-i586.exe to start the installation wizard.
  • The installation wizard will guide you to finish the installation.

To test the installation, open a command window to try the java command. If you are getting the following output, your installation was ok:

Once JDK is installed, you can try to use it to compile and execute a simple Java program:

1. Use Notepad to enter the following Java program into a file called Hello.java:

2. Then compile this program in a command window with the javac command:

3. To execute the program, use the java command:

Congratulations, you have successfully entered, compiled and executed your first Java program with JDK 1.7.0.

Last update: 2014.

Table of Contents

About This Book

Downloading and Installing JDK 1.8.0 on Windows

Downloading and Installing JDK 1.7.0 on Windows

java.lang.Runtime Class - The JVM Instance

java.lang.System Class - The Operating System

ClassLoader Class - Class Loaders

Class Class - Class Reflections

Java

Sun's JVM - Java HotSpot VM

JRockit JVM 28.2.7 by Oracle Corporation

JVM Runtime Data Areas

Memory Management and Garbage Collectors

Garbage Collection Tests

Microsoft has been a mastermind in the software industry. It has been decades, Microsoft has always surprised users with back-to-back software releases and kept them advanced and up-to-date to the How to download Microsoft Windows 8.1 Basic Edition ISO 32/64 bit – Complete Guide in 2020. Windows 8.1 industry pro iso. Download Windows 8.1 Disc Image (ISO File) If you need to install or reinstall Windows 8.1, you can use the tools on this page to create your own installation media using either a USB flash drive or a DVD.

JVM Stack, Frame and Stack Overflow

Thread Testing Program and Result

CPU Impact of Multi-Thread Applications

I/O Impact of Multi-Thread Applications

CDS (Class Data Sharing)

Micro Benchmark Runner and JVM Options

Micro Benchmark Tests on 'int' Operations

Micro Benchmark Tests on 'long' Operations

Micro Benchmark Tests in JIT Compilation Mode

Install Java On Windows 10

Micro Benchmark Tests on 'float' and 'double' Operations

Outdated Tutorials

References

Install Java For Windows 7

PDF Printing Version