Main method is the entry point for the application to ru. Make sure your main method definition is correct. You may be having a main method, which is different from what JVM expects. Correct definition of main method should look like this:
public static void main(String args[])
Any change in this definition will make your main method to be a different method and JVM will not be able to find the entry point in your code to run.
Also your class containing the main method should be a public class and the corresponding file name should be same as that of class.