#!/bin/sh

vmopts=

# There should be no reason to set this, and having it set will
# confuse libgcj.
unset CLASSPATH

vmopts=
case "$@" in
 *-vm*)
    # If the user specifies a launcher, let him do what he likes.
    ;;

 *)
    if test "`uname -m`" = "ia64"; then
       # On ia64, we currently require the IBM JDK.
       vmopts="-vm /usr/lib/jvm/java-1.4.2-ibm/bin/java"
    else
       # Default to gcj launcher.  With the gcj launcher, for now, we can
       # only support the C locale.
       LANG=C
       export LANG
       unset LC_COLLATE LC_CTYPE LC_MONETARY LC_NUMERIC
       unset LC_TIME LC_MESSAGES 
       vmopts="-vm /usr/lib/eclipse/gcjlauncher"
    fi
    ;;
esac

exec /usr/lib/eclipse/eclipse $vmopts ${1+"$@"}
