source: other-projects/trunk/realistic-books/packages/AntInstaller/demo/bin/run.sh@ 19253

Last change on this file since 19253 was 19253, checked in by davidb, 15 years ago

Establishing a source code repository for Veronica's Realistic Book's software

File size: 531 bytes
Line 
1#!/bin/sh
2
3if [ "$JAVA_HOME" = "" ] ; then
4 echo set JAVA_HOME;
5 exit 1;
6fi
7
8# find the command called's root e.g. ./build/
9dir=`expr match "$0" '\(.*\)run.sh'`
10echo command called $0 directory
11
12# if it we did not call ./ change to the directory we called
13if [ "$dir" != "./" ] ; then
14 if [ "$dir" != "" ] ; then
15 echo changing to $dir
16 cd "$dir" ;
17 fi
18fi
19CLASSPATH=$CLASSPATH:./classes
20
21echo $CLASSPATH
22echo $JAVA_HOME
23
24$JAVA_HOME/bin/java -cp $CLASSPATH org.tp23.demo.Demonstration
25
26
Note: See TracBrowser for help on using the repository browser.