Please help me! I wrote below code then I compiled it (there is no error):
//A Very Simple Example //Area of circle class CircleArea { public static void main(String[] args) { float pi, r, a; pi = 3.1416f; r = 10.5f; a = r*r*pi;
System.out.println(a); } }
=> Then I click on Run Java Application, but on the Command Prompt showed error: Exception in thread "main" java.lang.NoClassDefFoundError: Output Press any key to continue . . .
What's wrong???
This conversation is currently closed to new comments.
Thank so much for your advice. I already looked at the error message, but I am very new with this! So how can I edit the code? I don't know how to public the class...! :-(
the command [pre] rt -fm /class{public.class}[/pre] But I, being polite, would suggest you peruse one of the many manuals on the subject. Or the internet. It's usually more fun trying to learn how to write programs if you have some sort of guide on which to lean. Otherwise too much trial and too much error.
If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.
Java Kid
//A Very Simple Example
//Area of circle
class CircleArea {
public static void main(String[] args) {
float pi, r, a;
pi = 3.1416f;
r = 10.5f;
a = r*r*pi;
System.out.println(a);
}
}
=> Then I click on Run Java Application, but on the Command Prompt showed error:
Exception in thread "main" java.lang.NoClassDefFoundError: Output
Press any key to continue . . .
What's wrong???