This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
 
subject: This code wont run ,but no error.
 
Similar Threads
Alignment and Spacing between components
problem in GridBagLayout
Please help me with this grid bag layout!!
How can I replace the standard Java icon?
GridBagLayout Question: Irregular Spacing