Running an Applet or Application

The CLASS file contains an intermediate code that requires a run time interpreter or
a just in time compiler to enable it to execute.

There are two ways to execute the CLASS file

 

As an Applet in a browser

As an application

Insert a reference to the CLASS file
in an HTML document

Open the document in the Web browser

The code executes within the browser.

Start the Run time package

Open the CLASS File from within the
run time package and execute it.

There is a run time package written
for every different platform.

The Java package you downloaded in section one
will start the run time package by typing
java
and the name of the class file
at the command prompt.

The next section will guide you through writing some Java applications.

Go to the next topic: Writing & Compiling an Applet

Back to the Table of Contents

 

.