#!/bin/bash
cmd=$QPEDIR/j2me/bin/cvm
while test 0 \< $# ; do
  if expr match "$1" "-Xprogress" > /dev/null ; then
    shift
    continue
  fi
  cmd="$cmd $1"
  if test "$1" == "-appletviewer" || test "$1" == "-cp" ; then
    shift
    cmd="$cmd file://$1"
  fi
  shift
done 
exec $cmd
