![]() |
can u help
Problem1
:
import java.awt.*;:
Exception in thread "main" java.lang.NoSuch.Method.Error: mainProblemi 2 :
import javax.swing.*;http://img149.imageshack.us/img149/2...problemga0.png |
Re: can u help
It says that you are missing "main". In the code that you have posted, there is no "main". That seems to be relatively straightforward. In other words, it seems to be missing. Do you have other code that you are not showing us, or Java?
|
Re: can u help
How can i fix this problem ? Can you help me in a way ?
|
Re: can u help
The code you posted compiles and runs fine on my computer.
From the screenshot you provided it would appear that you accidentally put a semicolon after the declaration of the main method, but that is not the case in the code you posted. Try compiling again and see what happens. |
Re: can u help
i cant compajl bro, have same errorr :$
can you show me your results that you have compiled |
Re: can u help
I compiled it the same way you did in the screenshot using javac. Try erasing those two files, then creating new ones by copying and pasting what you posted on this forum. That might do the trick. Otherwise I have no idea why you are getting that error.
|
| All times are GMT -5. The time now is 12:43 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC