How to install java

Java can be installed to any computer despite of the operating system. The reason behind this fact is the cross-platform nature of this programming language.

There are 2 main steps in installing Java.

  1. Downloading Java JDK
  2. Configuring Java in the computer (normally for windows)

You can download Java from there web site.

http://www.oracle.com/technetwork/java/javase/downloads/index.html

There you have to select the defined Java JDK for your Operating System.

Downloading Java
Select the correct Java version for your Operating System.

After downloading Java, open command prompt(in windows) or terminal(in Linux) and type “Java” and press enter.

For Linux the configurations will be automatically configured but for windows you have to configure manually.

Configuring Java in Windows

  1. Right click on My computer icon and select the option “Properties”.
  2. In the left corner, you will find a topic named “Advanced System Settings”
  3. Click “Environment Variables” there and in the “System Variables” section, click for the “Path” variable and click “edit”.
  4. Then copy and paste the path of the “Javac” you have downloaded.
  5. Normally the path will be like :
    C:\Java\jdk1.7.0\bin\
  6. Remember that you have to separate the previous path with the new path by a semi colon. (;)
    C:\Windows\System32\Wbem;C:\Java\jdk1.7.0\bin\
  7. Then click “OK” in all the boxes poped up.

Now Java is ready to run in your computer.

In the next tutorial we’ll discuss about “Variables” in Java and how to work with them.

Enjoy.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s