3.3 Binary Code

The DAJ toolkit comes in two versions, one for JDK 1.0.x, one for JDK
1.1.x. Calling

java -version

on your installation machine tells you which version you need. However, if you
want to serve your program also as an applet, you should use the DAJ version for JDK 1.0.xand also use JDK 1.0.x for compilation (many popular browsers do
not support JDK 1.1).

Installing the DAJ toolkit is simple. Download the files
daj.zip and awt.zip for the appropriate JDK version and set the
environment variable CLASSPATH to include the paths of these files.
This allows you to use DAJ locally.

If you want to serve DAJ applets compiled with the 1.0 version, you have to
use unzip to extract the individual .class files from
daj.zip and install them in some directory daj3. Likewise, the .class files from awt.zip are extracted
and installed in directory daj/awt. This directory has to be served by
your Web server as explained in the previous section.

If you want to serve DAJ applets compiled with the 1.1 version (remember that
they will not run in many browsers), you may proceed as with the 1.0 version
or, alternatively, download and install the files
daj.jar and awt.jar in some directory served by your Web
server as explained in the previous section.