title: JAVA - Classloader can't find Applet main class
body: <p>I won't put all source code because it's really huge but I will try to explain my problem the best I can do.</p>
  
  <p>I have an applet <code>com.dmp.applet.DMPApplet</code>, It's the main applet class and this one should be the first to load</p>
  
  <p><code>com.dmp.applet.DMPApplet</code>:</p>
  
  <pre><code>package com.dmp.applet;
  // Imports
  
  public class DMPApplet extends Applet
  {
      @Override
      public void init()
      {
          this.state = AppletState.OFF;
          this.running = true;
  
          CPSAPI.connector = (Cpsw32) Native.loadLibrary("cpsw32", Cpsw32.class);
  
      }
  
      @Override
      public void start()
      {
          CR_CPS cr = CR_CPS.fromShort(CPSAPI.connector.CPS_OuvertureSession(CPSAPI.pNomRessource, CPSAPI.pNomAppli, CPSAPI.pStatusService, CPSAPI.pNumSession.getReference(), CPSAPI.pFU.getReference()));
          System.out.println("OUVERTURE DE SESSION : " + cr.getMessage());
  
          this.jso = JSObject.getWindow(this);
  
          if(this.state == AppletState.OFF &amp;&amp; this.running)
          {
              this.Attente_Connexion();
              this.Demande_Code_PIN();
          }
  
          if(this.state == AppletState.LOGGED &amp;&amp; this.running)
          {
              this.Connexion_VS();
              this.Lancement_Gateway();
          }
  
          if(this.state == AppletState.READY &amp;&amp; this.running)
          {
              this.Ecoute_Evenements_CPS();
              this.Fermeture();
          }
      }
  
      public void stop()
      {
          CR_CPS cr = CR_CPS.fromShort(CPSAPI.connector.CPS_FermetureSession(CPSAPI.pNumSession.getValue(), CPSAPI.pStatusService));
          System.out.println("FERMETURE DE SESSION : " + cr.getMessage());
      }
  
      public void destroy()
      {
          // TODO
      }
  
  }
  </code></pre>
  
  <p>It's architecture is the basis for an applet to execute but when I test it under Eclipse (Juno) but every time I launch the project I get :</p>
  
  <pre><code>java.lang.ClassNotFoundException: com.dmp.applet.DMPApplet.class
      at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:211)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:662)
      at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)
      at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)
      at sun.applet.AppletPanel.run(AppletPanel.java:368)
      at java.lang.Thread.run(Thread.java:619)
  </code></pre>
  
  <p>Such a pain, I can't figure out what's happenning, the project works perfectly on another PC (the one my team mate use to develop), and it worked until two days ago...I have no clue...</p>