In this page we give instruction on how to build GOBU programs from source codes.
Contents
- Steps
- Building GOBU Applet
Skip steps that you had done it.
- Install Java Developer's Kit (JDK), you can download JDK from java.sun.com. In order to build GOBU successfully, JDK of version 1.4.2 (or higher) is recommended.
- Install Apache Ant, you can download Ant from Apache Ant website.
- Decide one place as your GOBU folder.
- Download the complete or src package of GOBU and uncompress it to the folder containing your GOBU folder, remember to check the option "uncompress with pathname" or something like that.
- In GOBU folder, there is a "build.xml" file for building GOBU by Ant. There are two ways to build GOBU by Ant:
- Modify the "build.xml" file, find the string "yourJdkHomeDir" and replace it with the path of your JDK directory. Then you can build GOBU by inputting Ant command (be sure you know the place of the Ant program) in the GOBU directory.
- Input Ant command directly in the GOBU directory with the Ant option "-D" to define property "jdk.home". For example, input command "ant -Djdk.home=c:\jdk1.5.0_01" if you had installed JDK in directory "c:\jdk1.5.0_01".
If you just follow above steps, Ant will build the GOBU standalone version. In order to build GOBU applet, just assign Ant target "appletBuild". For example, command "ant -Djdk.home=c:\jdk1.5.0_01 appletBuild" will build the applet JAR file and place it in the "applet" sub-folder in the GOBU folder.