--- files/ecj.in.org	2008-04-06 00:41:53.000000000 -0400
+++ files/ecj.in	2008-04-06 00:43:21.000000000 -0400
@@ -1,31 +1,6 @@
-#!/bin/bash
-# remove double bootclasspath entries:
-BOOTCLASSPATH=""
-BOOTCLASSPATH=$(find @PREFIX@/share/java -name "libgcj*.jar" -print | tr "\n" ":"):$(find @PREFIX@/share/java/ -name "glibj*.jar" -print | tr "\n" ":")
-OPTIONS=""
-while [ $# -gt 0 ]
-do
-  if [ $1 = "-bootclasspath" ]
-  then
-    BOOTCLASSPATH=$2:$BOOTCLASSPATH
-    shift
-    shift
-    continue
-  fi
-  OPTIONS="$OPTIONS $1"
-  shift
-done
-GIJ_EXECUTABLE=$(ls @PREFIX@/bin/gij* | tail -n1)
-if [ -e /usr/bin/java ]
-then
-  exec /usr/bin/java -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-elif [ -e /usr/bin/cacao ]
-then
-  exec /usr/bin/cacao -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-elif [ -e  ]
-then
-  exec $GIJ_EXECUTABLE -jar @PREFIX@/share/java/eclipse-ecj.jar -bootclasspath $BOOTCLASSPATH $OPTIONS
-else
-  echo "no java vm found :("
-  exit -1
-fi
+#!/bin/sh
+# add the compiler to the classpath and then use the default java 
+# implementation.  If the user wants to change the version of java
+# they can define what 'java' resolves to.
+CLASSPATH=/opt/local/share/java/eclipse-ecj.jar${CLASSPATH:+:}$CLASSPATH \
+java org.eclipse.jdt.internal.compiler.batch.Main "$@"
