:

#determine platform (32/64 bit)
>/tmp/platform.c
echo '#include <stdlib.h>'>>/tmp/platform.c
echo '#include <stdio.h>'>>/tmp/platform.c
echo 'main(){printf("ux%d", (int) (sizeof(void *)*8));}'>>/tmp/platform.c
cc /tmp/platform.c -o /tmp/platform
PLATFORM=`/tmp/platform`
rm /tmp/platform /tmp/platform.c >/dev/null 2>&1

# run the Demo.class file
java -cp .:../lib/lpsolve55j.jar -Djava.library.path=../lib/$PLATFORM Demo

# run the Demo.jar file
java -cp ./Demo.jar:../lib/lpsolve55j.jar -Djava.library.path=../lib/$PLATFORM Demo # -Djava.library.path=/usr/local/lib
