TopBottom

Followers

Followers



Click on more
SUBSCRIBE



VIDEO

Announcement: wanna exchange links? contact me at ravikrak@yahoo.com

Java Programming Environment

Posted by Ravi Kumar at Tuesday, February 24, 2009
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

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.

Share |

Labels:

0 comments:

Post a Comment