Avatar of Chakri25
Chakri25

asked on 

Unix shellscript problem Usage: java [-options] class [args...]

I have a script
test.sh and the contents are

source /home/xdev/scripts/iicemaker/documents.env
echo "Ieg etters..."
echo $HOME
/opt/sunjava-1.5.0_09/bin/java -Djava.security.auth.login.config=/home/imdev/temp/jaas.config -classpath $CLASSPATH:$HOME/xx/apache-tomcat-5.5.23/webapps/iice-maker/WEB-INF/classes/com.s.w.xe.geers.etersnlad.class

when i run this- i get
Ieg etters......
/home/x

Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if availabl.............blah blah

i was working fine the script a few days back, now all of a sudden it is throwing this error

the documents.env 

Open in new window

Unix OS

Avatar of undefined
Last Comment
agriesser

8/22/2022 - Mon