Friday, March 5, 2010

Starting Java Programming

Starting Java Programming
To start making java programs, first of all you should install JDK [Java Development Kit] and JRE[Java Runtime Environment].
Now it is important to know why should you these. Actually Java programs run on those machine which have Java supported software like JRE. And as we are here to program in Java so JDK must be installed to compile those program.
Java program can be written in any simple text editor like Notepad in Windows. Or you can also use any IDE. I will recommend you Eclipse or Netbeans. Both of these are freeware and provides good environment for development. But remember these are advanced tools. I will use simple Windows Notepad to make your concepts clear.
You can download these compilers from there websites.
As I said i will take you to Java programming using Notepad, so lets start how to start your Java program after having jdk.
First of all you have to save the file with the extension of " .java " and the name must be same as of the class in the program.
To compile this program go to cmd and type { javac FILENAME.java }
After Compiling and to run type { java FILENAME}.
This how you will get to your program.

No comments:

Post a Comment