ClassNotFoundException only if the JAR is signed

This is a puzzle!

I have an applet in a JAR. When a JAR is signed - whether it is self-signed or with a DigiCert certificate - I get ClassNotFoundExceptionin the main class of applets. When I do not sign the applet, it loads just fine - (not counting the expected SecurityExceptiondue to the fact that the code is not signed).

But I can unzip the signed JAR and find everything where it should be.

The strangest part is that until the last week the setup worked just fine. Same core class, self-signed, same JS / HTML deployment kit, etc.

Any thoughts?

Here is the error message:

java.lang.ClassNotFoundException: com.spraklab.ilos.applet.Applet
at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:195)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:249)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:179)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:690)
at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3045)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497)
at java.lang.Thread.run(Thread.java:680)
+2
source share
2 answers

: JAR!

: ! . , , ClassNotFoundException . , -, . . .., Chrome. . . ! , .

? , Jar ! : JAR- - , , 2 . Java 2 ...?!?!

0

. , Java 1.2.

+2

Source: https://habr.com/ru/post/1524580/


All Articles