How to Get Started with Java?

For a beginner to begin with Java programming it needs a few basic steps to go through. Here we provide a step by step beginner's guide to get started with Java.


Learning Java for non programmers Why You Should Learn Java in 2018? Installing JDK 9 on Windows 10 How to convert binary to decimal in Java? How to add two numbers in Java? What is Applet in Java with Example? What is nested class in Java with Example? Exception handling in Java Programming Examples What is Constructor Overloading in Java? How to display image in Swing? What is Java programming used for? How to create custom exception in Java? How to set CLASSPATH in Java? What is Multithreading in Java? IO Streams in Java with Examples How to convert String Date to Timestamp in Java? Best Java Tutorial for Beginners Read user input in Java using Scanner Java Programming Examples Read file line by line in Java 8 What are the benefits of learning Java Programming? A brief history and future of Java programming language Importance of Java for Mobile Application Development How To Become A Good Software Developer? Learn Java Programming for beginners 5 Reasons Java is Still a Great Language to Boost Your Career Prospect as a Programmer How to learn Java with no programming experience? How to learn Java? What are Classes and Interfaces in Java? Converting a String to Integer in Java How to check if a string exists in a string in JavaScript? Installing JDK 8 on Windows 10 and configuring the settings Video Tutorial of reading file in Java 9 Invincible Reasons to learn Java New to Java programming Java Programming Tips, Articles and Notes How to download JDK 1.6? Encapsulation in Java Programming How to format number in Java? Generics Example Program in Java

A Java Beginners Tutorial - How to Get Started with Java?

For a programmer Java offers some challenges that are uncommon with other environments and to get started with Java you need to keep in mind a few things. First of all, you need to install a lot of things (almost all you need) before just starting. Java is perceived as challenging because even before you could just give any programming input you may have to rake your brains over these things and that takes a considerable time. Here we would try to make your life easier through providing a detailed guidance down below. The installing process of basic Java files and components will take some time before actually you will start writing codes using any piece of software. Here we go as to show you how to get started with Java.

Installing Java Virtual Machine

For a beginner it is important to know that Java is absolutely independent of operating system platforms. It means Java programming works on any platform including Windows, Mac, Linux and others. It can seamlessly comply with any operating system simply because of Java Virtual Machine which is a program to process all your codes correctly in the operating system it is in use. So to get started with Java the first step would be to install the Java Virtual Machine on your system.

Java is open source software but owned by the Oracle Corporation and so to install Java Virtual Machine you need to go to the website of Oracle. It is also popularly known as Java Runtime Environment (JRE). You can go to the following link or you can alternatively try this link as well The link page contains a button clicking on which you can check whether your system already has JRE preinstalled. When you become sure that it is not there you can download and install it. After finishing download and installation the computer will need to restart and thereafter your computer is ready with Java Virtual Machine.


Installing Java Software Development Kit

Making your computer ready for Java programs to run is just what you have done now and still you are not in a position to write Java codes and test them. Downloading and installing Java software development kit is the next step to become equipped in all regards before you actually start writing codes. For downloading Java Software Development kit you can try this link Go for the Java SE (standard edition) since you are a beginner and do not need much except the basic what it needs to start with. There is a multitude of options including JDK, NetBeans, etc.

How You Get to Work with Java?

Now, this is where you aspired to come at last – programming codes. Write your original codes for the program in a text editor. This code called as Source Code in programming environment is saved with a file extension mentioning .java. The next step is compiling which means turning the Source Code into Byte Code. There are specific programs like Javac which performs this well by creating a new file by the extension .class. As soon as the ‘class’ file is created it can be run on Java Virtual Machine.
These are specific steps to follow:

  1. Writing and saving Source Code with file extension .java
  2. Compiling Source Code to Byte Code and creating compile file with file extension .class
  3. Running the compiled class files on Java Virtual Machine

Check the tutorial Hello world (First java program) which will explain you the process of compiling and running a simple Java program.

Tutorials for getting started with Java



We have 1000s of tutorials on our website. Search Tutorials tutorials on our website.

Share on Google+Share on Google+

How to Get Started with Java?

Posted on: December 3, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles



Discuss: How to Get Started with Java?  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
per ottesen Bisgaard
May 10, 2014