can't execute

T

Tom Wouters

Hello

i got a simpel program with a main methode but it wont execute
import javax.swing.*;



public class Frame_01{



public static void main(String[] args){

JFrame frame = new Jframe("Mijn eerste JFrame");

frame.setVisible(true);

}

}



I don't know why it doesn't do it



TIA

Tom
 
C

Chris Smith

Tom said:
i got a simpel program with a main methode but it wont execute

So what error message do you get, or otherwise what goes wrong?

By the way, the code you posted doesn't even compile; please copy and
paste code into your newsreader, rather than typing some approximation
of your real code.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
T

Tom Wouters

import javax.swing.*;



public class Frame_01{



public static void main(String[] args){

JFrame frame = new Jframe("Mijn eerste JFrame");

frame.setVisible(true);

}

}



this is the exact code and it compiles at my pc.

the error is noclassdeffounderror: Frame_01
 
P

Paul Lutus

Tom said:
import javax.swing.*;



public class Frame_01{



public static void main(String[] args){

JFrame frame = new Jframe("Mijn eerste JFrame");

frame.setVisible(true);

}

}



this is the exact code and it compiles at my pc.

No it is not. It does not compile. You must copy from your programming
editor and paste into your newsreader, do not type what you think the code
is.
the error is noclassdeffounderror: Frame_01

And that is not the error message. You need to post the keystrokes -- all of
them -- that you used to compile and run this program. And post the exact
error messages, all characters the same. Since it won't compile, we are
especially interested to see the compilation procedure.
 
C

Chris Smith

Joona said:
Tom Wouters said:
import javax.swing.*;
public class Frame_01{
public static void main(String[] args){
JFrame frame = new Jframe("Mijn eerste JFrame"); ^^^^^^




this is the exact code and it compiles at my pc.

No it's not. No it doesn't.

No need for that specific presumption. Perhaps Tom has written a class
called Jframe that extends JFrame. If this was done intentionally
though, someone needs to be slapped. :)

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top