...
Download and Setup HabaneroJava (HJ) Package
Note that the HJ package is meant to run only 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 contact the staff if you need help to do that.
HJ - Download and Install
You will have to download and install HJ once for every machine you plan to use HJ on.
- Download the zip file containing the HJ package from https://svn.rice.edu/r/comp322/course/downloads/hj-1.2.0-2011-01-06.zip
- Now you have Lets call the zip file . Lets call it 'hj’hj-version.zip'zip’.
- Unzip the file
unzip hj-version.zip - This will create a folder, namely 'hj-version'
- Set the environment variable HJ_HOME to this new folder, hj-version
cd hj-version
export HJ_HOME=`pwd` - Set the environment variable PATH
export PATH=$HJ_HOME/bin:$PATH
HJ - Setup
You will have to setup the environment before you can compile and run HJ programs. This has to be done every time you login to a machine or start a new shell. These commands are specific to the shell you use.
You can figure out which shell you are using with the following command.
ps -p $$
Here are the commands if you are using a bash shell.
- Set the environment variable HJ HOME to the ’hj-version’ folder.
export HJ HOME=<full-path-to-hj-version-folder>
ORYou are all set to run HJ programs
Testing
Do the following to check if your HJ is setup properly.
...