Comment 4 for bug 325815

Revision history for this message
Florian Diesch (diesch) wrote : Re: Java applet works in windows, not in linux.

It's not a bug in the applet, it's a bug in the web page that contains the applet.

"\" is not allowed in URLs (see RFC 1738, chapter 2.2. "URL Character Encoding Issues") and the path components are separated by "/" (see RFC 1738, chapter 2.3 "Hierarchical schemes and relative links"), so "patch\TriangleCoonsPatchApplet.class" can't be used to reference the file "TriangleCoonsPatchApplet.class" in folder "patch".

As far as I know Internet Explorer is the only browser that replaces \ with / in URLs.

If a browser requests the URL as it is most web servers will interpret it as "file named patch\TriangleCoonsPatchApplet.class" which is different from "file named TriangleCoonsPatchApplet.class in folder patch" and most likely isn't available. So the applet in such doesn't work with such browsers because the browser gets an error from the web server when it tries to load the applet file.