Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.  

...

  1. Download the jar file corresponding to DrJava-HJ
  2. 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.

  1. Open the DrJava-HJ guiDrHJ IDE
    java -jar drjava-version.jar
  2. Now you should have the DrJava-HJ gui DrHJ IDE running.
  3. 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
  4. Compile the HJ program.
    Click on the compile button on the top panel
  5. The 'Compiler Output' tab in the bottom panel should show 'Compilation Completed'.
  6. 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.
  7. Go to the 'Interactions' tab in the bottom panel. Run the program by typing the following.
    run HelloWorld
  8. DO NOT use the gui IDE with different options for ’-places’.
  9. DO NOT use the gui IDE for timing your executions.