This directory contains an example on how to create different Java
versions of an Applet. The Applet source-code contains C-preprocessor
conditionalis to compile the Applet to Java 1.0 or Java 1.1 class-
files. The compilation of the Applet is done via the Makefile in this
directory. The Makefile is, of course, created by mmake.
Do a "make doc" to create HTML-documentation of the Applet. Load the
doc/api-docs/index.html file into your browser to have a look at what
the Applet does.
Then do a "make" to compile the Applet to Java 1.0 code. It is the
VERSION macro in the Makefile that controls the version you will
obtain. To compile the Applet as Java 1.1 code, simply change VERSION
to JAVA1_1. But first, do a "make clean" to remove .class and .java
files before you make the Applet again.
Have a look at the tildeslash/StartApp.xjava code to see how you can
write your own code to support different versions, with CPP-
README: This file
Makefile: The Makefile, generated with mmake
A dependency graph for the files in the tildeslash package.
You can create this yourself by changing the variable
JAVAC in the Makefile to JAVAC=jikes and then do a 'make
depend'. (If you have the jikes compiler on your system.)
index.html: HTML-file to load the Applet.
images: Directory with Images, used by the Applet
tildeslash: Package directory containing the source-code for the Applet.