#!/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.5.jar:${ELIB}/annot-tools-1.1.4.jar:${ELIB}/annot-search-lib-1.4.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:${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.5.0" -Xmx512m -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 $*
