Question : ProGuard - ClassNotFoundException

I have an applet (ProjectApplet) that is processed by proguard. When I visit the page holding the applet, I get a ClassNotFoundException.

java.lang.ClassNotFoundException: com.floorsoft.floorwizard.client.fw.project.ProjectApplet.class

This is my configuration:
      -injars      "${tomcat.home}/webapps/FloorWizard/lib/project.jar"
      -outjars     "${tomcat.home}/webapps/FloorWizard/lib/sproject.jar"
      -libraryjars "${java.home}/lib/rt.jar"
      -libraryjars "${java.home}/lib/jce.jar"
      -libraryjars "${java.home}/lib/plugin.jar"
      -libraryjars "${tomcat.home}/common/lib/ccg_client.jar"
      -keep        class com.floorsoft.floorwizard.client.fw.project.ProjectApplet
      -keep        class com.floorsoft.utility.jdbc.JdbcRepresentDml
      -keepnames   class com.floorsoft.floorwizard.client.fw.project.ProjectApplet
      -keepnames   class com.floorsoft.utility.jdbc.JdbcRepresentDml

There is a class named ProjectApplet in the jar file in the correct package. Loading project.jar instead of the proguard processed sproject.jar works.

Ideas?

Answer : ProGuard - ClassNotFoundException

Make sure both jars are in the archive attribute
Random Solutions  
 
programming4us programming4us