getClass.getResourceAsStream returns null if run locally.
1.3.1_09 - worked 1.4.0 - failed 1.4.0_02 - failed 1.4.0_03 - worked 1.4.0_04 - worked 1.4.1 - worked 1.4.1_02 - worked 1.4.1_03 - worked 1.4.2 - worked 1.4.2_01 - failed 1.4.2_02 - failed 1.4.2_03 - failed 1.4.2_04 - failed 1.5 beta - failed
Here is the code for the first applet:
And here is the code for the second applet:
runtime.jar consists of the Start applet class resourceloader.jar consists of ResourceApplet.class and an empty ResourceAppletBeanInfo.class resources.jar consists of one text file resource.txt which contains a success message to show in the first applet if we are successful.
If anyone can shed some light on this problem it would be most appreciated. What change from one minor version of plugin to another may have caused it to work in one plugin and not the other? Why does it work when served from an IIS or Apache web server but not when run locally? Any help?
posted 15 years ago
I tried creating a policy file but the only thing that succeeded was giving all permissions to any codebase, which is not a viable solution. Anyone?