Java Program Compilation and Execution via DOS Command Prompt

Activate the DOS Command Prompt in Windows Vista environment via the Windows button at the Desktop: All Programs> Accessories> Command Prompt

To compile Java Program:
C:\javac JavaProgram.java

To execute Java Program:
C:\java JavaProgram

Java is a case-sensitive programming language, inclusive of its filenames. Do remember to set the Command Path and Class Path in your Operating System environment.

0 comments:

Post a Comment