3 # OS specific support. $var _must_ be set to either true or false.
7 CYGWIN*) cygwin=true ;;
8 Darwin*) darwin=true ;;
11 if [ -z "$JAVACMD" ] ; then
12 if [ -n "$JAVA_HOME" ] ; then
13 if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
14 # IBM's JDK on AIX uses strange locations for the executables
15 JAVACMD=$JAVA_HOME/jre/sh/java
17 JAVACMD=$JAVA_HOME/bin/java
24 if [ ! -x "$JAVACMD" ] ; then
25 echo "Error: JAVA_HOME is not defined correctly."
26 echo " We cannot execute $JAVACMD"
30 # add in the dependency .jar files
31 # The jar-files are in the same directory as this scriptfile !
32 # So remove the name of this script-file from the path and replace it
34 DIRLIBS=${0%/*}/../lib/*.jar
37 if [ -z "$LOCALCLASSPATH" ] ; then
40 LOCALCLASSPATH="$i":$LOCALCLASSPATH
44 # For Cygwin, switch paths to Windows format before running java
46 JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
47 LOCALCLASSPATH=`cygpath --path --windows "$LOCALCLASSPATH"`
50 $JAVACMD -classpath "$LOCALCLASSPATH" de.hunsicker.jalopy.swing.SettingsDialog