Jan 13, 2013 Java can run applications developed using the java programming language and set of development tools. The JVM is a crucial component of the Java platform. The availability of JVMs on many types of hardware and software platforms enables Java to function both as middleware and a platform in its own right.
Java is a computer programming language that is concurrent, class-based and object-oriented. It was originally developed by James Gosling at Sun Microsystems. Java applications are compiled to bytecode (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture.
Java is currently owned by the Oracle Corporation which acquired Sun Microsystems in 2010. Following tutorial will show you how to setup and configure Java 1.7 on Windows so you can develop and run Java code.
Check following posts if you are looking to download and install JDK 1.5, JDK 1.6, JDK 1.8, JDK 1.9 or JDK 1.10.
Java can be obtained from the Oracle Java download page. There are a number of different Java packages available, for this tutorial we will be installing Java Standard Edition (SE) on Windows.
In order to be able to compile Java code, we need the Java Development Kit (JDK) package that comes with a Java compiler. The JDK package also comes with a Java runtime environment (JRE) that is needed to run compiled Java code.
As we are installing an older Java version, you need to scroll all the way down to the bottom of the Oracle Java download page and click on the Download button in the Java Archive section. Then look for the Java SE 7 link and after clicking on it, select the correct operating system under Java SE Development Kit 7u80.
Here is the direct link to download the jdk 1.7.0_80 installer for Windows 32 or 64 bit.
Accept the License Agreement and pick the correct download for your operating system. In this example, we will use the Windows 64 bit version.
Sign in using your Oracle account (or create a new one) and the download should start. Once the download is complete, locate the jdk-7u80-windows-x64.exe file and double-click to run the installer.
Click Next and on the following screen optionally change the installation location by clicking on the Change... button. In this example the install location was changed to 'C:Javajdk1.7.0_80'. From now on we will refer to this directory as: [java_install_dir].
Next, the installer will present the installation location of the public JRE. We will skip this part of the installer as the JDK installed in the previous step comes with a private JRE that can run developed code. Just press Cancel and confirm by clicking Yes in the popup window.
Click Next and then Close to finish installing Java.
In order for Java applications to be able to run we need to setup a 'JAVA_HOME' environment variable that will point to the Java installation directory. In addition, if we want to run Java commands from a command prompt we need to setup the 'PATH' environment variable to contain the Java bin directory.
When using Windows the above parameters can be configured on the Environment Variables panel. Click on the Windows Start button and enter “env” without quotes as shown below.
Environment variables can be set at account level or at system level. For this example click on Edit environment variables for your account and following panel should appear.
Click on the New button and enter “JAVA_HOME” as variable name and the [java_install_dir] as variable value. In this tutorial the installation directory is 'C:Javajdk1.7.0_80'. Click OK to to save.
Click on the New button and enter “PATH” as variable name and “%JAVA_HOME%bin” as variable value. Click OK to save.
Java 7.0 Free Download
Note that in case a 'PATH' variable is already present you can add “;%JAVA_HOME%bin” at the end of the variable value.
The result should be as shown below. Click OK to close the environment variables panel.
In order to test the above configuration, open a command prompt by clicking on the Windows Start button and typing “cmd” followed by pressing ENTER. A new command prompt should open in which the following command can be entered to verify the installed Java version:
The result should be as shown below.
This concludes the setting up and configuring JDK 1.7 on Windows.
If you found this post helpful or have any questions or remarks, please leave a comment.
Java 8 Download
Java Platform, Standard Edition | ||
---|---|---|
Java SE 13.0.1Java SE 13.0.1 is the latest release for the Java SE PlatformLearn more | ||
| Oracle JDK | |
Looking for Oracle OpenJDK builds?
| ||
Java SE 11.0.5 (LTS)Java SE 11.0.5 is the latest release for the Java SE 11 PlatformLearn more | ||
| Oracle JDK | |
Java SE 8u231Java SE 8u231 includes important bug fixes. Oracle strongly recommends that all Java SE 8 users upgrade to this release.Learn more | ||
| JDK | |
Server JRE | ||
JRE | ||
Which Java package do I need?
| ||
Java SE 7 updatesUpdates for Java SE 7 released after April 2015 are only available to Oracle Customers through My Oracle Support (requires support login).Java SE Subscription offers users commercial features, access to critical bug fixes, security fixes, and general maintenance. | ||
Early Access ReleasesEarly access versions of future releases of the JDK and the JRE are available for testing. These early access releases include future update and future major releases. These releases are licensed only for testing, not for use in production. | ||
JDK 8 Demos and SamplesDemos and samples of common tasks and new functionality available on JDK 8. JavaFX 8 demos and samples are included in the JDK 8 Demos and Samples packages. The source code provided with demos and samples for the JDK is meant to illustrate the usage of a given feature or technique and has been deliberately simplified. |