Java 页面刷新后或导航到同一页面后,小程序无法重新加载,第二次获取classNotFoundException(页面刷新后)

Java 页面刷新后或导航到同一页面后,小程序无法重新加载,第二次获取classNotFoundException(页面刷新后),java,jar,applet,japplet,Java,Jar,Applet,Japplet,小程序首次加载并成功运行,但当我们离开页面时 然后再次尝试导航到同一页面,以获取未找到类异常 使用jnlp 使用罐子 请提供解决方案我也有同样的问题,但在我的例子中是关于从location.href捕获URL的。 当使用JSF时,第一次访问并没有带来真正的页面URL,但巧合的是,小程序就在那里。第二次单击后,将显示真实的页面URL,并且找不到小程序jar。 我通过相对于基本URL放置一个固定的jar位置来解决问题,而不是当前页面的位置。今天早上我的小程序也遇到了同样的问题。 exception:

小程序首次加载并成功运行,但当我们离开页面时 然后再次尝试导航到同一页面,以获取未找到类异常

使用jnlp 使用罐子
请提供解决方案

我也有同样的问题,但在我的例子中是关于从location.href捕获URL的。 当使用JSF时,第一次访问并没有带来真正的页面URL,但巧合的是,小程序就在那里。第二次单击后,将显示真实的页面URL,并且找不到小程序jar。
我通过相对于基本URL放置一个固定的jar位置来解决问题,而不是当前页面的位置。

今天早上我的小程序也遇到了同样的问题。
exception: JNLP file error: applet-test-applet.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct..
java.io.FileNotFoundException: JNLP file error: applet-test-applet.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.io.FileNotFoundException: JNLP file error: applet-test-applet.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
load: class com.*.*.uidai.auth.*.class not found.
java.lang.ClassNotFoundException: com.*.cpos.uidai.auth.*.class
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: