20.09.2017

jmol

<html>
<head>
<title></title>

<meta name="Subject" content="" />
<meta name="Publisher" content="" />
<meta name="Description" content="" />
<meta name="Contributors" content="" />
<meta name="Effective_date" content="None" />
<meta name="Expiration_date" content="None" />
<meta name="Type" content="LBSDocument" />
<meta name="Format" content="text/plain" />
<meta name="Language" content="None" />
<meta name="Rights" content="" />
<meta name="SafetyBelt" content="None" />
</head>
<body>
#!/bin/sh

# Collect -D & -m options as java arguments
command=java
while [ `echo $1 | egrep '^-D|^-m' | wc -l` != 0 ]; do
command="$command $1"
shift
done

if [ -f ./Jmol.jar ] ; then
jarpath=./Jmol.jar
elif [ -f $JMOL_HOME/Jmol.jar ] ; then
jarpath=$JMOL_HOME/Jmol.jar
elif [ -f /usr/share/jmol/Jmol.jar ] ; then
jarpath=/usr/share/jmol/Jmol.jar
else
echo Jmol.jar not found
exit
fi
$command -Xmx512m -jar $jarpath $@

</body>
</html>