
Hi,
here is my code:
package project1; public class dddddddddd { public static void main(String[] args) { System.out.println("dddddddddddddddd"); }
}
but output is as follows: run: java.lang.NoSuchMethodError: main Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)
please help me on this..
Thanks in Advance.

I checked your code on eclipse ide..there will be no problem in executing this code.
But if you are executing it using command prompt(CMD), you need to first compile it inside project1 folder as :
...\project1>javac dddddddddd.java
then you need to run it as :
java project1.dddddddddd
Hope this will solve your problem.

ya.. thanks a lot.... great absevation..