#!/bin/bash

instdir=`dirname "$0"`

cd "$instdir"

ELAN_HOME=.
ELIB=${ELAN_HOME}/lib
EEXT=${ELAN_HOME}/ext
JMF=${ELAN_HOME}/jmf2.1.1a

CLASSPATH=${ELIB}/elan.jar:${ELIB}/mfsearch-1.3.1.jar:${ELIB}/JavaQTMovieView-1.4.2.jar:${ELIB}/jlfgr-1.0.jar:${ELIB}/batik-1.1.1.jar:${ELIB}/jhall-2.0.0.5.jar:${ELIB}/help.zip:${ELIB}/xalan-2.4.1.jar:${ELIB}/xercesImpl-2.9.0.jar:${ELIB}/hsqldb-1.8.0.7.jar:${ELIB}/log4j-1.2.14.jar:${ELIB}/mpi-util-1.0.0.jar:${ELIB}/mdsearchapplet-1.3.2.jar:${EEXT}/nl.mpi.guk__V07.jar:${EEXT}/nl.mpi.lookup__V09.jar:${JMF}/jmf.jar:${JMF}/sound.jar:$CLASSPATH
#echo $CLASSPATH
#export CLASSPATH
#-Dswing.aatext="true", false by default

java -Xdock:name="Elan 4.1.2" -Xmx256m -Djava.library.path="$ELIB/:$java.library.path" -Djava.util.logging.config.file=elanlog.properties -DQTNoSleepTime=true -DuseBufferedImage=true -classpath $CLASSPATH mpi.eudico.client.annotator.ELAN $*
