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

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)

 

Apply Index

Apply Page #4

Activity 4: Compilation and running of "BallWorld.java" - version 3

NOTE - you can either follow all the steps below, to create a completely new "bounce3" directory and a new version of our BallWorld files, alternatively you can simply change the version 2 "paint" method test from:
 

if( counter < 1 )

to

if( counter < 10 )

and recompile and run.

The steps to create a completely new version 3 directory are as follows:

(1) create a new directory called "bounce3", to store the files for version 2 of our application

(2) copy the file "Ball.class" into this new directory

(3) Open "BallWorld.java - version 3" in your Kawa editor

if there were any errors - fix them and recompile

(4) add a comment at the top of the file with your name and date

(5) save the file into your new directory, calling the file "BallWorld.java"

(6) compile the file "BallWorld.java" into bytecode

(7) after successful compilation you should now see the file "BallWorld.class"

(as well as the other "Ball.class" and "BallWorld.java" files)

(8) now run application by choosing Run from the Build pull down menu of Kawa

Discussion of Activity 4

Back to Content

Back to top

basicline.gif (169 bytes)

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