Robley and Jennifer, it is not a question of relative or absolute
paths, it is that Java will refuse to load files that are above the
applet in the folder tree structure, due to security reasons.

So, you can have
/JmolApplet.jar
/molecule.mol

or
/JmolApplet.jar
/models/molecule.mol

but not
/jmol/JmolApplet.jar
/molecule.mol

I think jmol.js can be anywhere, although I just put it together with
JmolApplet.jar at the root of my website, so that all pages and
models can read it.
Miguel recommends --as the foolproof way-- putting JmolApplet.jar and
the models in the same folder, but that is inconvenient in my website
structure, as I like to classify content in separate modules.

El 8 Jul 2005 a las 2:59, Robley Light escribió:
> If you have the file somewhere else (say "above" the Jmol file), can you
> just use the complete path (i.e. URL) to the file?



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to