![]() |
![]() ![]() |
Prepare for Debugging![]() |
This part of the tutorial shows you how to compile a Java program, use the Java Machine Code Translator and run the program in the applet viewer.
If not, add it by editing the PATH variable that is set in your .cshrc, .login or similar file, then running the source command on the changed file.
javac QuickMenu.java
This generates five .class files:
ParamString.class
QMenuLink.class
QuickMenu$MouseListener0.class
QuickMenu$MouseMotionListener0.class
QuickMenu.class
appletviewer index.htm&
The appletviewer command takes an argument: the HTML file that contains the applet you want to run.
An appletviewer window opens to display the applet.
Since the menu items are all links to URLs, there is no visible behavior when you click the menu items.
file:/yourdir/QuickMenu/index.htm
![]() |
![]() ![]() |
Prepare for Debugging![]() |
Guide to the Cosmo Code Development Environment
12-96*150