GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes This code wont run ,but no error. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "This code wont run ,but no error." Watch "This code wont run ,but no error." New topic
Author

This code wont run ,but no error.

Ric Luper
Greenhorn

Joined: May 15, 2005
Posts: 9
Hi, thankyou for reading my post.

How do I find out what is wrong with my code? Im using JEdit on a Mac , this code compiles but wont run. Ive made a mistake but cant see it for looking. Im not a java programmer and dont understand what i have done wrong. It doing my head in so I hope you can help.

I typed javac cardGUI1.java at the prompt
I then typed java cardGUI1

The java thing (what is it called) opened up and displayed the class name, it then shut down about a second later.



//JAM -- Edited [CODE] and [/CODE] tags.
[ May 16, 2005: Message edited by: Joel McNary ]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
change
java cardGUI1

to
javaw cardGUI1
Ric Luper
Greenhorn

Joined: May 15, 2005
Posts: 9
Hi
Thank you for trying to help but that command was not found.
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
you�v to add this:


java amateur
Ric Luper
Greenhorn

Joined: May 15, 2005
Posts: 9
Thank you Miguel, it works great now
 
GeeCON Prague 2014
 
subject: This code wont run ,but no error.