#!/bin/bash
set -e

# A script to run the generated java program. A shared library is present
# with JNI code, so LD_LIBRARY_PATH is used so the program can find it.

# Also include the jar files
JAVA_CLASSPATH="./common/:./modules/:jars/jl1.0.jar:jars/Tidy.jar:jars/xom-1.1.jar"

LD_LIBRARY_PATH=./common/rpg:$LD_LIBRARY_PATH java -classpath $JAVA_CLASSPATH rpg.Main "${@}"
