#!/bin/sh
#
# Change to the java directory where we're installed
cd ${PKG_ROOT}/opt/QtPalmtop/java/jabp

#
# Launch the virtual machine (using the -Xappname argument so that we appear
# on the tasklist - see Qtopia Integration section)
#
if [ "`which evm`" != "" ]; then
  evm -cp Jabp.jar -XappName=runjabp Jabp.Jabp
else
  /opt/QtPalmtop/j2me/bin/cvm -Djava.class.path=${PKG_ROOT}/opt/QtPalmtop/java/jabp/Jabp.jar -XappName=runjabp Jabp.Jabp
fi
