We need to document this better. Seems to be the problem-of-the-week.

Todd, your problem comes from using Jmol to load files that are local to your hard drive. Specifically for local files:

All data files must be in the directory or a subdirectory of the directory containing JmolApplet.jar.

This is reasonable for all Java applets. Otherwise a rogue applet could start reading the system files on your hard drive.

Bob Hanson

Todd Carlson wrote:

I have written a lot of Chime pages and am just now getting around to
learning jmol.  I was going to have my biochem students write some
simple jmol pages this semester.  My experience in the past has been
that you must keep things simple in order to do this kind of exercise in
class as you never know what might come up, as shown by the fact I spent
all morning sorting through this problem:

All the jmol pages at the jmol web site work on my Dell PC running
IE6.0 and Mozilla 1.7.3 so I assume my hardware and software is
compatible.  I downloaded the jmol 10.00 zip file and extracted into a
folder on my hard drive in subdirectory "jmolprograms".  I then copied
the code for the very simple jmol demo page from the jmol.js page
(http://jmol.sourceforge.net/jslibrary/) and saved as an html file along
with the caffeine.xyz file is subdirectory "jmolpages".  I edited the
code for my directory structure as instructed at the web page to get:

<html>
  <head>
    <title>Simple example</title>
    <script src="../jmolprograms/Jmol.js"></script>
  </head>
  <body>
    <script>
      jmolInitialize("../jmolprograms")
      jmolApplet(200, "load caffeine.xyz");
    </script>
  </body>
</html>

This page would display the black jmol box, but no image loaded.  After
troubleshooting all morning, I find that if I put the same page along
with the xyz file in the "jmolprograms" subdirectory, the jmol image
comes up fine.  I also find that if I put the jmol program files in the
root directory, then this page works in either subdirectory:

<html>
  <head>
    <title>Simple example</title>
    <script src="../Jmol.js"></script>
  </head>
  <body>
    <script>
      jmolInitialize("../")
      jmolApplet(200, "load caffeine.xyz");
    </script>
  </body>
</html>

Finally, when I got the empty jmol box with no image, I could use the
jmol menu to open a console window.
When I entered a "load caffeine.xyz" command I get a bunch of errors:

File Error:java.security.AccessControlException: access denied
and
ScriptException:java.security.AccessControlException: access denied

Does anyone know what I'm doing wrong.  I would like to get this sorted
out or I'll have 15 frustrated students I can't help.

Thanks in advance
Todd









-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

--

Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr

"Imagination is more important than knowledge."  - Albert Einstein


------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to