permaculture playing cards*
The moose likes Linux / UNIX and the fly likes Shell script running jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Shell script running jar file" Watch "Shell script running jar file" New topic
Author

Shell script running jar file

Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Hi Folks,

When i try run a jar file from shell script , i face some prob.

I have given this command in shell file - java -jar proc.jar arg1.arg1 arg2.arg2 arg3.agr3

My main class takes three argument. But somehow shell file is not taking arg3 in consideration. This command works well when i run it straight away at $ but shows some problem in shell script.

Any suggestion.

Regards,
Patricia Samuel

Patricia Samuel
Ranch Hand

Joined: Sep 12, 2007
Posts: 300
Resolved. Last parameter in the script was having space and when property tries to load it, it does not find the value.

Thanks Anyways!!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shell script running jar file