#!/bin/sh
#get current dir
userdir=$(cd "$(dirname "$0")"; pwd)
#export PATH=.:$userdir/jre/Contents/Home/bin
#class path that SolarPower is depended on
export CLASSPATH=.:$userdir/lib/commons-lang.jar:$userdir/lib/commons-logging.jar:$userdir/lib/derby.jar:$userdir/lib/dom4j-1.6.1.jar:$userdir/lib/iText-5.0.6.jar:$userdir/lib/iTextAsian.jar:$userdir/lib/jaxen-full.jar:$userdir/lib/jcommon-1.0.0-rc1.jar:$userdir/lib/jfreechart-1.0.0-rc1.jar:$userdir/lib/JTattoo.jar:$userdir/lib/jxl.jar:$userdir/lib/log4j-1.2.14.jar:$userdir/lib/mail.jar:$userdir/lib/RXTXcomm.jar:$userdir/lib/saxpath.jar:$userdir/lib/SoftewareUpgrade.jar:$userdir/lib/SolarPower.jar:$userdir/lib/spring-beans.jar:$userdir/lib/spring-core.jar:$userdir/lib/volModbus.jar:
#go into current dir
cd $userdir
#SolarPower App
jre/Contents/Home/bin/SolarPower cn.com.voltronic.solar.console.mac.SolarPower &
