File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 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 » 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: 11255
    
  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
 
jQuery in Action, 2nd edition
 
subject: Runtime error