CLASSPATH
environment variable, along
with the necessary 3rd party Java packages.
Given this setup, you can start an Omegahat session with the command
java org.omegahat.Environment.Console.omega
which
brings up the basic interactive, command line evaluator. A different
top-level class and collection of options can be specified to start a
GUI version or with a different evaluator (perhaps GUI aware, such as
the org.omegahat.Environment.Interpreter.GUIHelpEvaluator).
If you experience errors, it may be that the default evaluator is looking for the Swing and JHelp packages. In this case, use the command
java -DevaluatorClassName=org.omegahat.Environment.Interpreter.InteractiveEvaluator org.omegahat.Environment.Console.omega
to force the use of the basic interactive evaluator that does not require any Swing-based
classes.
The installation is very similar to the one above, but this time you download the OmegaBinary.tar.gz file. This contains
OMEGA_HOME
.
Then, you can invoke the shell script
$OMEGA_HOME/bin/omegain the usual way. The options and initialization scripts are read from the appropriate directories in the
Environment/
directory.
noweb
source, to compile to Java, you only need
the notangle
.
You will also require Perl
Having obtained the source, you should have a directory
named org/omegahat
at some point in the directory hierarchy.
Set the environment variable OMEGA_HOME
to this directory, e.g.
setenv OMEGA_OMEGA wherever/org/omegahat # {t,}csh export OMEGA_OMEGA=wherever/org/omegahat # bash
make local.makeThis produces a file that is used by both
make
and the Bourne shell
to set variables.
You do not have to set all of the variables listed in this file,
just the ones for which the default values are different value on your system.
You will have to set the locations of the 3rd party packages if
they are not in the directory $OMEGA_HOME
/Jars
.
cd $OMEGA_HOME gmakeThis produces more output than you ever want to see. It traverses all the subdirectories in the source tree and creates the
.java
files from the noweb. Then it
performs a second pass to create the .class
files.
The next step is to create the omega
script that is used to start an omegahat session.
gmake scripts
org.omegahat.Environment.Interpreter.GUIHelpEvaluator
evaluator to provide the help system framework.
Omega.jar
files by (s)copying the file Jars directory from the main account.
Given this setup, the following commands in tcsh
set the CLASSPATH
correctly
cd Jars setenv CLASSPATH `pwd`/antlr.jar:`pwd`/jas.jar:`pwd`/Omega.jar:${JAVA_HOME}/lib/classes.zip