jar - java.lang.ClassNotFoundException -
I have an applet (jar file) embedded in an html page
Now when I'm trying to use the web page, it is giving the following error
. & Lt; Read applet code = "ComkxxxktrukReadNFCSerialNumber" name = "read" id = "" MAYSCRIPT alt = "photo ID" collection = "\ test.jar, \ ojdbc14.signed.jar, \ ojdbc14_g.signed.jar "Width =" 100% "height =" 100% "hspace =" 1 "VSPACE =" 1 "& gt; & Lt; / Applet & gt; Load: Class com.xxx.tru.ReadNFCSerialNumber not found. java.lang.ClassNotFoundException: com.xxx.tru.ReadNFCSerialNumber (unknown source sun.plugin2.applet.Applet2ClassLoader.findClass (Unknown Source) at java.lang.ClassLoader.loadClass (Unknown Source) at java.lang.ClassLoader.loadClass ) in Sunkplugin2kappletkPlugin2ClassLoaderkloadCode (unknown source) (unknown source) at sun.plugin2.applet.Plugin2Manager.createApplet on sun.plugin2.applet.Plugin2Manager $ AppletExecutionRunnable.run (unknown source) at java.lang. Because of Thread.run (Unknown Source): java.io.IOException: failed to open HTTP connection: http: //localhost/popit/POPit/com/xxx/tru/ReadNFCSerialNumber.class sun.plugin2.applet. Sun.plugin2.applet.Applet2ClassLoader.access $ 000 (unknown source) at applet2ClassLoader.getBytes (unknown source) at sun.plugin2.applet.Applet2ClassLoader $ 1.run at java.security.AccessController.doPrivileged (Native Method) source) at ... 7 more exception: java.lang.ClassNotFoundException: com.xxx.tru.ReadNFCSerialNumber
I'm doing ng ??
The web browser is trying to load its class from URI I suggest you check the http: Localhost / popit / popit / com / xxx / tru / readnFCserialnumber.class
instead of your jar file. archive
The content of the feature looks suspicious. Is this really a comma and space delimited list? Also, look suspicious backslash in front of the file name:
collection = "\ test.jar, \ ojdbc14.signed.jar, \ ojdbc14_g.signed.jar"
fixing> code
and then see what the web browser will load as the class file jar suggests as you want it to be.
Comments
Post a Comment