您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Content Index

Content Page # 10

Running the program

When testing, the simplest way to run the application is usually to start it from the command line. For example, if the main() method were defined in the class MyProgram , then after compiling the MyProgram.java source file:

 Using Kawa, you would select run

 or from a command line of DOS you could enter the command :

 java MyProgram

Do not enter java MyProgram.java . You want to execute a class (object file), not a source file.

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg