Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Runtime error

 
Seth Anshul
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to run a java program which takes the argument as "*".
But it is not happening.
I tried printing the value of arguments passed on command line, it is giving me the packagename as the argument value, instead of "*".

Is there a problem if we use "*" as a parameter?

Regards,
Asset
 
Rafael Fagundes
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don�t knou but probably threr is some problem with this special character.
Try to use some kind of a MASK / KEY WORD where you identify it as '*'.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12146
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I imagine it is a problem with your shell misinterpreting the symbol, and not with Java. You can try other quoting symbols, like single quote or back-tics. that MIGHT work... but i always get confused on what exactly each means in which shell.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic