...
Note that the HJ software is currently only supported on Linux and MacOS. If you have a Windows machine, you will have to remotely login to one of the lab machines and work on it. Please DrHJ (rather than command-line version of HJ) can work on Windows if you install a standard Oracle JDK. Please contact Vincent Cavé if you need help with that.
...
- Download the jar file corresponding to DrJava-HJ
- Lets call the jar file ’drjava-hj-version.jar’.
...
DrHJ -
...
Setup
There is no setup needed for DrJava-HJDrHJ.
...
DrHJ - Testing
Here are the instructions to compile and run HJ programs using the DrJava-HJ guiDrHJ IDE.
- Open the DrJava-HJ guiDrHJ IDE
java -jar drjava-version.jar - Now you should have the DrJava-HJ gui DrHJ IDE running.
- Open a HJ program. Lets say we open hj-version/examples/fib/Fib.hj.
Click on the open button on the top panel
Navigate to the folder ’hj-version/examples/HelloWorld’, which contains an HJ program, HelloWorld.hj
Select HelloWorld.hj and click open - Compile the HJ program.
Click on the compile button on the top panel - The 'Compiler Output' tab in the bottom panel should show 'Compilation Completed'.
- Go to the 'Console' tab in the bottom panel and check if there were any errors during compilation. All errors will be shown in RED.
- Go to the 'Interactions' tab in the bottom panel. Run the program by typing the following.
run HelloWorld - DO NOT use the gui IDE with different options for ’-places’.
- DO NOT use the gui IDE for timing your executions.