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 |
|
---|
3 | if [ "$JAVA_HOME" = "" ] ; then
|
---|
4 | echo set JAVA_HOME;
|
---|
5 | exit 1;
|
---|
6 | fi
|
---|
7 |
|
---|
8 | # find the command called's root e.g. ./build/
|
---|
9 | dir=`expr match "$0" '\(.*\)run.sh'`
|
---|
10 | echo command called $0 directory
|
---|
11 |
|
---|
12 | # if it we did not call ./ change to the directory we called
|
---|
13 | if [ "$dir" != "./" ] ; then
|
---|
14 | if [ "$dir" != "" ] ; then
|
---|
15 | echo changing to $dir
|
---|
16 | cd "$dir" ;
|
---|
17 | fi
|
---|
18 | fi
|
---|
19 | CLASSPATH=$CLASSPATH:./classes
|
---|
20 |
|
---|
21 | echo $CLASSPATH
|
---|
22 | echo $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.