#!/bin/sh 

export HDFJAVA_HOME="/mnt/hdf/packages/hdfview/3.1.0-Linux64_3.10"
export JAVAPATH=/usr/bin

######################################################

CPATH=$HDFJAVA_HOME"/lib/*"
export CLASSPATH=$CPATH":"$CLASSPATH
export LD_LIBRARY_PATH=$HDFJAVA_HOME"/lib"
echo $CLASSPATH

$JAVAPATH/javac  $1.java
$JAVAPATH/java -Xmx1G  -Djava.library.path=$HDFJAVA_HOME"/lib" $1 dummy.h5

