• Post Reply Bookmark Topic Watch Topic
  • New Topic

.sh file run by config .jar  RSS feed

 
Sham Jowsaki
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I have an .jar file and i need to run the application by command line running .sh file.
I hv configured .jars n classpath n java. though it is giving error. my .sh file is. pls advise me whats wrong in my file.
------------------------------------------------
#!/usr/bin/sh
# Usage: produpdater.sh <oa> <da> <size> <output_file>
# Change JAVA and EMG according to your enviroment.
JAVA=/usr/lib/java; export JAVA
EMG_LIB=/opt/emg/CNProductlist/src;
JAR_HOME=/opt/emg/CNProduct;
# You shouldn't touch this part.
CLASSPATH=./:$JAR_HOME/product.jar:$EMG_LIB/lib/common_connection_2_9.jar;export CLASSPATH
$JAVA CNProcessor $*
-----------------------------------------------
Thanks
jowsaki
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!