I have given the path and classpath correctly but still i face the problem even after new installation of jdk.My present version is older than the previous version.Please reply soon as my works are pending .
Marilyn de Queiroz
posted 10 years ago
Originally posted by vinodh kumar: my java jdk has some problems.It compiles files correctly and while running it shows as :
D:\Java\programs>java HelloWorld Exception in thread "main" java.lang.NoSuchMethodError: main
I have given the path and classpath correctly.
Does your HelloWorld have a main method that looks like public static void main( String args ) ?? [ October 18, 2005: Message edited by: Marilyn de Queiroz ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt