aspose file tools*
The moose likes Beginning Java and the fly likes Runtime error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Runtime error" Watch "Runtime error" New topic
Author

Runtime error

Seth Anshul
Greenhorn

Joined: May 02, 2006
Posts: 16
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

Joined: Sep 23, 2004
Posts: 52
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 '*'.


Thanks,
Rafa
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11471
    
  16

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.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Runtime error