• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

parm failing in command line call to jar  RSS feed

 
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 ]
 
Bartender
Posts: 3323
86
  • 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!