Computer

How to install Java

How to install Java

Basics of Java

History

  • 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).

Picture

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.

Picture

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

  1. Install the JDK.

Picture

2. Set path of the JDK/bin directory.

  •  Permanent path

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

Picture

                 2. Go to Advanced Systems settings 

Picture

                 3. Select Environmental variables.

Picture

                  4. Select New tab (User Variables).

Picture

                  5. Write “path” in variable name.

Picture

                  6. Copy the path as the Variable Value.

Picture

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

Type the below command in your terminal.

Picture


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

Picture

Thamali Epa
Thamali is a contributor at Nerdynaut Staff.
  • Fascinated
  • Happy
  • Sad
  • Angry
  • Bored
  • Afraid
5 Comments

5 Comments

  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 *

Most Popular

​Disclaimer : Nerdynaut is a tech company which consists of professionals in respective academic fields in its functional team facing challenging roles to quench the thirst of knowledge in cyberspace. Every article and majority of artworks in this website are copyright of Nerdynaut 2017. After a written permission from the publisher, the original content can be reused or referred for promotional work of education without any modification. Expressions of mass media with intentional harm on Nerdynaut brand may be liable to criminal prosecution and civil claims for the damages caused.
Protected by Copyscape
* = required field
Do You know Sinhala

Copyright©2014-2017.The Nerdynaut. All Rights Reserved.
Made in Sri Lanka.

To Top