Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hdb viewer
#!/bin/bash
TANGO_JAVA_LIBS=/usr/local/share/java
JDBC_LIB=/usr/share/java
applet_name=HDBViewer.MainPanel
Appli=$TANGO_JAVA_LIBS/jhdbviewer.jar
TANGO=$TANGO_JAVA_LIBS/JTango.jar
TANGOATK=$TANGO_JAVA_LIBS/ATKCore.jar:$TANGO_JAVA_LIBS/ATKWidget.jar
HDBPP=$TANGO_JAVA_LIBS/libhdbpp-java.jar
JYTHON=$TANGO_JAVA_LIBS/jython.jar
JCALENDAR=$TANGO_JAVA_LIBS/jcalendar.jar
CLASSPATH=$JDBC_LIB:$TANGO:$TANGOATK:$HDBPP:$JYTHON:$JCALENDAR:$Appli
export CLASSPATH
echo CLASSPATH $CLASSPATH
export TANGO_HOST=localhost:10000
export JNIPATH=-Djava.library.path=/usr/lib/x86_64-linux-gnu/
export JDBCPATH=-Djdbc.drivers=org.postgresql.Driver
export HDB_TYPE=POSTGRESQL
export HDB_NAME=hdb
export HDB_POSTGRESQL_HOST=localhost
export HDB_POSTGRESQL_PORT=5432
export HDB_USER=hdb_admin
export HDB_PASSWORD=hdbpp
if [ "$#" -lt 1 ]
then
/usr/bin/java $JDBCPATH $applet_name $@
else
if [ $1 = "-diag" ]
then
echo "-diag option not supported !"
else
java HDBViewer.MainPanel
fi
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment