How to install Java

How to install Java

Basics of Java


  • Initiated in 90’s (1991).
  • Founded by James Gosling (Sun Microsystems).
  • Original name is Oak before named as Java.
  • First public release was on 1995.
  • It was mainly targeted at Internet Development.

Java is,

  • Widely used.
  • Class based OOP
  • General purpose
  • Computing platform

Java version history

  1. JDK Alpha and Beta (1995)
  2. JDK 1.0 (23rd Jan, 1996)
  3. JDK 1.1 (19th Feb, 1997)
  4. J2SE 1.2 (8th Dec, 1998)
  5. J2SE 1.3 (8th May, 2000)
  6. J2SE 1.4 (6th Feb, 2002)
  7. J2SE 5.0 (30th Sep, 2004)
  8. Java SE 6 (11th Dec, 2006)
  9. Java SE 7 (28th July, 2011)
  10. Java SE 8 (18th March, 2014)

Platform independence of Java
A platform is the hardware or the software environment in which your program runs. There are 2 types of platforms namely Runtime Environment and API (Application Programming Interface).


To execute a simple Java program, first need to download and install Java to your computer.

How to install Java?

Latest version can be downloaded from the Java Official website for Linux, Mac or Windows 7/8.


Choose Windows to download and Install Java for Windows computer. (Depend on your OS)

  1. Install the JDK.


2. Set path of the JDK/bin directory.

  •  Permanent path

                  1. Go to My Computer and right click and select properties.


                 2. Go to Advanced Systems settings 


                 3. Select Environmental variables.


                  4. Select New tab (User Variables).


                  5. Write “path” in variable name.


                  6. Copy the path as the Variable Value.


                               When you select ok, now you can execute any Java program
  • Temporary path 

Type the below command in your terminal.


3. Create Java program.
4.Compile and execute.
For Linux


Thamali Epa

Thamali is a contributor at Nerdynaut Staff.

  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid


  1. Anirudh Biliya

    October 28, 2015 at 5:53 pm

    Good Information

  2. Loma sedu

    October 28, 2015 at 6:57 pm

    Thanks nerdynaut

  3. Wilfred

    May 1, 2017 at 12:06 am

    I’ve been absent for some time, but now I remember why I used to love this website. Thanks , I will try and check back more often. How frequently you update your web site?

  4. Lester

    May 1, 2017 at 12:16 pm

    I was incredibly pleased to locate this web site. I wanted to thanks for your time for this superb read!! I surely enjoying each and every little bit of it and I have you bookmarked to take a look at new stuff you blog post.

  5. Cecila

    May 5, 2017 at 12:44 pm

    I do agree with all of the ideas you’ve presented in your post. They are very convincing and will definitely work. Still, the posts are too short for newbies. Could you please extend them a bit from next time? Thanks for the post.

Leave a Reply

Your email address will not be published. Required fields are marked *

This Month's Most Popular Posts

AdvertisementBooks by Nerdynaut
To Top