The Jedi Tutorial

previous
by Andreas Raquet
next


Preparing for compilation

Compilation is simply started by clicking the 'compile' icon. But before doing that, we should configure the compiler. This is accomplished by selecting the 'Compiler' entry in the 'Prefs' menu. A dialog will pop up and let you configure all compiler properties. The only thing we need to do for now is to tell Jedi where the java compiler and classes are installed. Remember that Jedi requires a java environment like JDK and uses its classes and its compiler for much of the actual work.

First enter the path of the java compiler in the string area on the top. Alternatively you can click the small icon right of the text field and use a firerequester to configure the path. It should be something like '<javadir>/bin/java' or '<javadir>/bin/JAVA.EXE'. <javadir> is the path of your JDK installation.
To set the class path, move the mouse pointer over the 'classpath' list, push the right button and select 'add using file requester'. This opens a requester where you can search for your java class files.
Usually these are located in '<javadir>/lib/classes.zip' where 'javadir' is the directory of your JDK installation. Select the 'classes.zip' file and hit return. The path should appear in the 'classpath' list. Close the configuration dialog with the 'Ok' button. For more information, take a look at the compiler preferences help.
 
 

Compiling the project

As mentioned before, compilation is started by clicking the compile icon. Alternatively you can open the compiler window using the 'compiler' entry in the 'windows' menu and click 'compile' there. Jedi will start compiling the whole project. If you haven´t done anything wrong, 'Compilation done' should appear after a few seconds. Again further information is available through the compiler help.

If you get the 'Compilation done' message from Jedi, your application has been built and you are ready to launch it. If not Jedi will display errors in a list as shown on the picture. When you click on an error, Jedi will jump to the error position. In the case of the image above, the user has forgotten to set the class path.
 
 


previous
30.08.1999
next