Applet works in a subfolder but not in root?
Hi everyone,
I'm having a bit of grief with using the PTViewer applet. It's something we use a lot - usually problem free - but when it came to doing our own website it works in the development environment (just a subfolder in the website root called "2010") but when we went live it just won't work!
The code between all websites is always exactly the same, it was literally a copy and paste job which is why I can't understand why it's not working. I get the error:
Code:
exception: java.lang.NullPointerException
If I fiddle about with the "code"/"archive" attributes it just fails to load. I read somewhere about the "codebase" tag helping but we've not used it on any of the other websites and it made no difference. I also tried moving the ptviewer.jar file into the same directory as the images but to no avail.
I've tried everything I can think of. Has anyone else come across a similar problem? Any help would be greatly appreciated!
Thanks,
Ben
P.S. I forgot to mention: if I use the ptviewer.jar file from a different server it successfully loads the applet but only shows a red box (I'm guessing because the images are not on the same server)