If you do not have JBuilder7:

l        You can download it from here: http://www.borland.com/jbuilder/personal/index.html

l        It's free. Just create a login so that they can send you an activation file.

l        Download JBuilder7, unzip it, and click the 'per_install' icon.

l        When the wizard starts, click next until installation begins (you must accept the license conditions). Finally click Done.

l        Save the activation file sent to you via email onto your computer.  When you try to run JBuilder 7 from your Start->Programs you will be asked to specify the location of this file.  Once you do this, and accept their terms and conditions (again), JBuilder7 will finally start.



1.       To use help on JBuilder7, download jb7docs.zip. You can also download jb7samples.zip for samples. Installation instructions are similar to above. http://info.borland.com/jbuilder/download/addons.html#personal7

2.       To access help online, there is a vast source of help documentation under PDF Books: http://info.borland.com/techpubs/jbuilder/index7.html



To compile Triangle using JBuilder7:

l        Create a new project. You can do this by clicking on the 'New Project' icon or using File->New Project.

l        On the tabs window that appears, notice the paths created. Find this path using the windows environment. Once you have found your project, click into it. Here you will see a class folder and a bak folder. You must add a src folder. In the src folder, paste the TAM and Triangle folders containing the source code (*.java files). Finally, paste the example *.tri files into your project folder.

l        Back in the tabs window you have open in JBuilder7, if it is still open, click OK to close it. You now have to add the TAM and Triangle package. Click on the 'Add files/packages' icon or File->Add Files/Packages. Select the Packages tab on the tabs window that appears. If you created the src folder properly and added the two folders to it, you should see them as packages. Add them both. Click OK.

l        Finally, you must specify the run time properties. Right-click on your project icon in the top-left labeled as a .jpx file. Select the 'Run' tab in the tabs window that appears. This allows you to specify the main file and the arguments. Set the main file to Compiler. You can do this using the browse button. In the arguments, enter the name of the .tri file you want to compile. If you placed it in the project folder earlier, its name is enough for the JBuilder7 compiler to find it.

l        You are set. Click on the make icon or Project->Make files. This will compile all your *.java files. When you get a successful compilation, you can run it by clicking the run icon or Run-->Run Project.

l        if you want to run the interpreter instead, you need to change the main file and the arguments in the Run Properties again. The main file should be Interpreter from the TAM package and the argument should be 'obj.tam' as this is the file created by the compiler. This may become too cumbersome; so if you discover an alternative, by all means let me know.

l        Good luck.