This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "GUI" Watch "GUI" New topic


Lucia Short

Joined: Aug 19, 2007
Posts: 13
I added a gui to my program and it doesn't work. Well, I checked it "stand alone" and it worked, but when I add it to my program it gives me a message to the command line:

USAGE: java com.myprogram.gui.MyClass <dataFilePath>

I am confused.
How can I solve this?
marc weber

Joined: Aug 31, 2004
Posts: 11343

Originally posted by Lucia Short:
...I am confused...

I am confused too. Can you show us exactly what your command prompt looks like? Including the commands you entered?

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
Lucia Short

Joined: Aug 19, 2007
Posts: 13
Here is exactly my prompt and the answer from the command line:

c:\JavaFolder>java -cp ..\classes com.mybank.gui.ATVClient
USAGE: java com.mybank.gui.ATMClient <dataFilePath>


That's it.
Lucia Short

Joined: Aug 19, 2007
Posts: 13
I figured this out. Thanks.
It is sorta covered in the JavaRanch Style Guide.
subject: GUI
It's not a secret anymore!