Hi guys, I have a complex applet which is contained in a jar file, and also relies on a few other jar files as libraries (for 3D stuff). All these are in the same directory as the HTML file, and up until a few days ago the applet was working great. Now when I try and load it in the browser I get Applet nto inited and the following sort of message in the console for each jar file, starting with the main one that contains the applet itself...
The weird thing is the applet still works on some PC's, but not on mine and also doesn't work for some other people. I'm guessing this is some kind of security problem, but I don't really know where to start looking! Any pointers greatly appreciated, has anyone had this problem before?
cheers [ February 11, 2004: Message edited by: Ben Wood ]
Hi Ben From the exception it seems from some PCs it doesn't find the jar file... try to make sure that on the PC where the applet doesn't work, the url- http(myserver)/etc/myapplet.jar is reachable. if that url is reachable directly via the browser the JVM in the browser should find it...because it doesn't make much sense that on some PCs it finds the jar and on some it doesn't as it is hosted on the server side. Also, make sure that your proxy configuration on the browsers that you are using is not causing this issue.. Regards Maulin
Hi Maulin, We eventually tracked this down to using certain types of paths in our applet code. The applet itself is a 3D viewer for data, and we were loading files that had been generated on the server immediately before the applet was initialised. Our mistake was to use a drive-mapping like... R:\\datafiles\data.dat I'm not sure why we even did this in certain places in the code. It was fixed by altering the path to point at the server like this... \\\\myserver\\datafiles\\data.dat ...presumably the reason it worked for some PC's but not others was that over time, drive mappings had changed on people's PC's. A foolish piece of bad practice really