java.lang.NoSuchMethodError
Hello friends,
sometimes java can be a real headache! From yesterday, everytime I tried to run a java program...it gives an error message -
Exception in thread "main" java.lang.NoSuchMethodError:main
-
the peculiar thing is the program compiled correctly without any error. But when I tried to run it, it stopped giving the error message. I tried every possible way...setting the PATH & CLASSPATH, uninstalling & then reinstalling java sdk..but all in without any result!
One mote thing I did watch, the programs that fromJApplet class are bound to this error message. Like the following -
////////////////////////////////////////////////////////////////////////////
import java.awt.Graphics;
import javax.swing.*;
public class MyClass extends JApplet {
//code here
public void init() {
//code here
}
public void paint(Graphics g) {
//code here
}
}
//////////////////////////////////////////////////////////////////
-Please can you help? Thanks in advance!!

