#!/bin/sh # What kinda mac are we on CPU=`uname -p` # Absolute path to where the app was launched from APP_PACKAGE="`dirname "$0"`/../.." APP_PACKAGE="`cd "${APP_PACKAGE}"; pwd`" # Locations of resources, jars, and libs LIB_DIR="Libraries/${CPU}" # Move to the resource directory cd "${APP_PACKAGE}/Contents/Resources" # Establish whether we should use the 32 bit or 64 bit cocoa library SWT_LIBNAME=swt-cocoa-32.jar java -version 2>&1 | grep "64-Bit" > /dev/null if [ "$?" -eq "0" ]; then SWT_LIBNAME=swt-cocoa-64.jar fi echo "SWT Library: ${SWT_LIBNAME}" # Launch app java \ -XstartOnFirstThread \ -classpath "Java/istapp.jar:Java/istapi.jar:Java/jface.jar:Java/${SWT_LIBNAME}" \ -Dorg.eclipse.swt.internal.carbon.noFocusRing \ -Dorg.eclipse.swt.internal.carbon.smallFonts \ @appmain@ $* # Go back to the old working directory cd "${OLDPWD}"