next up previous contents index
Next: The main panel Up: Getting Started Previous: A simple example

Compiling DJ programs

The command for compiling DJ programs has the following format:

       dj [-parameter value] ...[-parameter value] File ... File
where File is the name of a file in which a DJ program is stored, parameter is a parameter name and value following a parameter is a value given to the parameter. A DJ source file must have dj as the extension name.

If the compilation is successful, the compiler generates two files, one storing a Java program and the other is an HTML file. Both files have the same name as the main class in the program.  

For example, to compile our HelloWorld program in the file HelloWorld.dj, we type:

       dj HelloWorld
The extension name can omitted. The generated Java program is stored in HelloWorld.java and the generated HTML file is HelloWorld.html.



Neng-Fa ZHOU
Sat Apr 18 16:14:29 JST 1998