Java Programming Environment
Posted by
Ravi Kumar at Tuesday, February 24, 2009
Share this post:
|
0 Comments
Using The Command Line Tool:
There are two methods for running java program:
1. From the command line.
2. From another program, such as an integrated development environment or a text
editor.
From the command line.
Open a shell or terminal window. Go to the
CoreJavaBook/v1ch2/Welcome directory.
Then enter the following commands:
javac Welcome.java
java Welcome
You have just compiled and run your first Java program.
The javac program is the Java compiler. It compiles the file Welcome.java into the file Welcome.class. The java program is the Java interpreter. It interprets the
bytecodes that the compiler placed in the class file.