title: How can I solve this "Class Not Found" Exception in Spring?
body: <p>I have an error in my Spring program: &quot;Class Not Found Exception.&quot; How can I solve it?</p>
  <pre><code>package com.app.sathya.test;
  
  import org.springframework.context.annotation.AnnotationConfigApplicationContext;
  
  
  import com.app.sathya.bean.EmpService;
  import com.app.sathya.config.AppConfig;
  
  public class Test {
       public static void main(String[] args) {
  
                AnnotationConfigApplicationContext ac=
                       new AnnotationConfigApplicationContext(AppConfig.class);
                        
                EmpService E=ac.getBean(&quot;empService&quot;,EmpService.class);
                System.out.println(E);
                
                ac.close();
       }
  }
  </code></pre>