java.lang.NoClassDefFoundError: com/candidjava/AddStudent
===

 

    private static SessionFactory sessionFactory1;
    		public static void main(String[] args)throws Exception{
    			if(args[0] !=null || args[1] !=null || args[2] != null)
    			{
    				// begin if // A
    				
    				String name = args[0];
    				
    				String degree = args[1];
    				String phone = args[2];
    				System.out.println("Name: " + name);
    				System.out.println("Degree: " + degree);
    				System.out.println("Phone: " + phone);
    
    				 if ((name.equals("") || degree.equals("") || phone.equals(""))) {
                     System.out.println("All informations are Required");

i am getting Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 .please suggest how to correct ? thanks in advance
