Getting Started with Java

By: Emiley J. Emailed: 1730 times Printed: 2342 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

If you are a beginner please read (History of Java) and (What is Java?) before proceeding. 

If you are familiar with C then Java should be very familiar to you in terms of syntax. If you are a C++ programmer the Java will be easier still since Java is also purely an Object Oriented Programming without some of the features like Pointers in C++.

To start programming your first Java program, you need to have some pre-requisites installed on your computer. As with any other programming language, you first need to install the SDK (Software Developer Kit) in this case it is JDK (Java Developers Kit).  Now choosing which JDK to download maybe a little tricky if you are new to Java. So it will be advisable to read the How Java is Organised? before you proceed.

You have two options to get started with Java.

1. Manual

  • If you want to do it manually, you will need to download a J2SE from Sun website and install on your computer. (The J2SE has many versions and it is better to check at the Sun website to get the latest JDK.)
  • The J2SE download is usually an executable file which will install automatically like any windows software.
  • Once the installation is successful, open a command line (DOS Window) and type 'Java' and 'Enter'. (If you see 'Bad command' then probably your PATH settings are wrong. In which add the installation path to the PATH variable from your 'computer properties' environment variables section.)
  • Open a Notepad, write your first sample program (you will find many java samples here) and save it as .java file (the name of the file should be same as the name of the CLASS in the program)
  • from the command window, change current directory to where you saved your .java file and compile the program ( Use 'javac' command followed by the name of the file to compile)
  • Once it is compiled a .class file will be created in the same folder. Then run the program using 'Java' command (Use 'Java' command followed by the name of the class)

2. Automated 

  • As with any other programming language, Java too has many free IDE (Integrated Development Environments) You can choose any of them. Most of them comes bundled with the required JDKs.
  • One of the widely used Java development tool is the Sun Studio. You can download it from the Sun website. 
  • Or you can download and use the net beans

Java Home | All Java Tutorials | Latest Java Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.

Bookmark and Share


1. View Comment

please sent the java code for course plan automation system

View Tutorial          By: vijayakumar.r.r at 2009-08-27 01:39:22
2. View Comment

Hi friends i am the beginner ..
please guide me ..

View Tutorial          By: Jigar at 2013-05-20 11:04:03

Your name (required):

Your email(required, will not be shown to the public):

Your sites URL (optional):

Your comments:

More Tutorials by Emiley J.
Error generating from manifest
ERROR 1251: Client does not support authentication protocol requested by server; consider upgrading MySQL client
IIS and Tomcat - how to configure to work together
PHP Warning: Unknown(): Unable to load dynamic library '/usr/local/php4/lib/php/extensions/no-debug ......
Adding your own Application icon for your J2ME application (jar file)
Creating Menus in Code using
Traversing all files in a directory using Ruby
Using Proxy to connect to URLs in Ruby
POST a form in Ruby
Reading URL content using Ruby (HTTP)
dRuby client/server mode sample program
Benchmark module in Ruby
encoding and decoding in Ruby using Base64 Module
Module Abbrev in Ruby
Standard Library Packages in Ruby

More Tutorials in Java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Java File
Java String
Count number of vowels, consonants and digits in a String in Java
Reverse a number in Java
Student marks calculation program in Java
Handling Fractions in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Multiple Inheritance sample in Java
Java program using Method Overriding
Java program to check if user input is an even number

More Latest News
Most Viewed Articles (in Java )
How to Send SMS using Java Program (full code sample included)
wait(), notify() and notifyAll() in Java - A tutorial
Method Overriding in Java
What is Java?
XML and Java - Parsing XML using Java Tutorial
InetAddress Example program in Java
How to use ArrayList in Java
Method Overloading (function overloading) in Java
Read from a COM port using Java program
Vector example in Java
Stack example in Java - push(), pop(), empty(), search()
Calendar - sample program in Java
Use of return statement in Java
Student marks calculation program in Java
arraycopy example in Java
Most Emailed Articles (in Java)
Vector in Java - Sample Program
Use of return statement in Java
The Basic Structure of a Simple Java program
Taking the size of an Array at runtime & generate random numbers to populate the Array
instanceof operator example in Java
PushbackReader sample program in Java
CharArrayWriter sample program in Java
iterator() and hasNext() in Java
3-D Secure Payment or 3DS - (3-Domain Secure Payment)
What is a Java Package and how to use it?
How to use Iterator in Java
J2EE Components
The modulus Operators
The java Buzzwords
Java Chat Client Sample Applet