#!/bin/sh

# wrapper script to start netscape
# with the appropriate settings for
# Java-EAI with VRwave
#
# created: mpichler, 19970821
#
# changed: mpichler, 19970929


SYS=${SYS-`uname -s`}

# either the directory where you have installed the VRwave classes
# or directory and name of VRwave class library
if [ -f ../classes/vrwave.zip ]
then
  # release version
  VRWAVECLASSES=../classes/vrwave.zip
  PLUGINCLASSES=../classes
  NATIVELIBDIR=../lib/${CPU?}  # containing libgejc.so
  PLUGINLIBDIR=../plugin/$SYS  # containing npvrwave.so
else
  # source code (local)
  VRWAVECLASSES=../../classes
  PLUGINCLASSES=../../native/pisrc
  NATIVELIBDIR=../../native/${CPU?}
  PLUGINLIBDIR=../../native/pilib/$SYS
fi

# note: PLUGINCLASSES necessary for plug-in version only
CLASSPATH="$PLUGINCLASSES":.:"$VRWAVECLASSES":"$CLASSPATH"
export CLASSPATH

# or you'll get no 3D scene displayed
LD_LIBRARY_PATH=$NATIVELIBDIR:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
# on HPUX:
SHLIB_PATH=$NATIVELIBDIR:$SHLIB_PATH
export SHLIB_PATH

# necessary for plug-in version only
NPX_PLUGIN_PATH=$PLUGINLIBDIR:$NPX_PLUGIN_PATH
export NPX_PLUGIN_PATH

set -x
netscape VRwaveEAI.html
# netscape VRwaveEAIembed.html
