when i entered sh startup.sh i received the foll error
[root@hydhtc50655d bin]# sh startup.sh
'tartup.sh: line 7: syntax error near unexpected token `do
'tartup.sh: line 7: `do
[root@hydhtc50655d bin]#
opened the file and removed all the whitespaces.
then the above error moved on 14 line and then to 22 line and finally it ended up to unexpected end of file
now my script file looks like this.
---------------------------------------------------------------------------------------------------------------------------
#!/bin/sh
# add the libraries to the IREPORT_CLASSPATH.
# EXEDIR is the directory where this executable is.
EXEDIR=${0%/*}
DIRLIBS=${EXEDIR}/../lib/*.jar
for i in ${DIRLIBS}
do if [ -z "$IREPORT_CLASSPATH" ] ; then
IREPORT_CLASSPATH=$i
else
IREPORT_CLASSPATH="$i":$IREPORT_CLASSPATH
fi
done
DIRLIBS=${EXEDIR}/../lib/*.zip
for i in ${DIRLIBS}
do if[ -z "$IREPORT_CLASSPATH" ] ; then
IREPORT_CLASSPATH=$i
else
IREPORT_CLASSPATH="$i":$IREPORT_CLASSPATH
fi
done
IREPORT_CLASSPATH="${EXEDIR}/../classes":$IREPORT_CLASSPATH
java -classpath "$IREPORT_CLASSPATH:$CLASSPATH" it.businesslogic.ireport.gui.MainFrame"$@"
~
~
~
-------------------------------------------------------------------------------------------------------------------------
now when i run sh startup.sh i get a new error..........
[root@hydhtc50655d bin]# sh startup.sh
startup.sh: line 23: syntax error: unexpected end of file
[root@hydhtc50655d bin]#