#!/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.
    ;;

 *)
    # 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"
    ;;
esac

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