Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

parm failing in command line call to jar  RSS feed

 
Katie Doody
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to call a jar file from the command line. The parm is failing like it is not being send. I know this is basic but I would appreciate any help.

Here is my bat file command:
java -jar D:\usr\sap\ECD\SYS\exe\LaborDistribution\LaborDistribution.jar [loadLabor];

My error:I get an error from inside my class that I created when an invalid parm is sent. "When Labor Executor parms fail"

A snippet from my main class:



Edit by mw: Added Code Tags to preserve formatting.
[ August 17, 2007: Message edited by: marc weber ]
 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that "[loadlabor];" doesn't actually equal one of the defined constants you are checking it against. Are you sure it is spelled correctly, is supposed to be enclosed in square brackets and/or followed by a semi-colon.
 
Katie Doody
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope it is not suppose to be in brackets and it should not have a semi-colon. Feeling a little stupid but it works now. Thanks!!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!