Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

This code wont run ,but no error.

 
Ric Luper
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
change
java cardGUI1

to
javaw cardGUI1
 
Ric Luper
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for trying to help but that command was not found.
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you�v to add this:
 
Ric Luper
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Miguel, it works great now
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic