#!/bin/sh
# author:	Seyed Samy Khadem-Al-Charieh
# file:		javaview
# history:	created Thu Sep 23 12:52:59 MDT 1999
# version:	1.00 created (sk)
# purpose:	shows a 3d-geometry with JavaView

# Set this line according to your needs,
# i.e. path to main directory of javaview.
CODEBASE=/usr/local/javaview

if [ $# -gt 1 ]; then
cat <<EOM
Incorrect usage:
usage: "javaview [file]"

	javaview is a shell-script that starts the java application javaview.class
	from the JavaView package for showing a geometry with name "file".
EOM
exit 1
fi

CLASSPATH=$CODEBASE/jars/javaview.jar:$CODEBASE/jars/jvx.jar:$CODEBASE/jars/vgpapp.jar
export CLASSPATH

if [ -t 0 ]; then
	exec java javaview CodeBase=$CODEBASE "$@"
else
	exec java javaview CodeBase=$CODEBASE File=stdin
fi
