File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Runtime error" Watch "Runtime error" New topic

Runtime error

Seth Anshul

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

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 '*'.

fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11955

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:
subject: Runtime error
jQuery in Action, 3rd edition