Hi, Freddy
Sounds like the eternal problem of accessing local files from Java; the files
must be in a folder equal or below the applet.
Try to move the xyz file:
<html>
<head>
<title>Simple example</title>
<script src="">
</head>
<body>
<script>
jmolInitialize("../jmol"); // REQUIRED
jmolApplet(200, "load ../jmol/caffeine.xyz");
</script>
</body>
</html>
Recommended way to do: put jmolapplet.jar in the top folder of your web
project, then all molecules will be below it, as in:
<html>
<head>
<title>Simple example</title>
<script src="">
</head>
<body>
<script>
jmolInitialize("../"); // REQUIRED
jmolApplet(200, "load caffeine.xyz");
</script>
</body>
</html>
assuming the web page and the xyz files are both one folder below the
jmolapplet.jar and jmol.js
On 11 Jul 2005 at 15:34, Freddy A. Rojas P. wrote:
> Windows and Unix but, in both cases I could load the applet but not the
> molecule. I tried to load the molecule from applet's console but I got an
> I/O Exception. Can you tell me what I'm doing wrong?
> <html>
> <head>
> <title>Simple example</title>
> <script src="">
> </head>
> <body>
> <script>
> jmolInitialize("../jmol"); // REQUIRED
> jmolApplet(200, "load caffeine.xyz");
> </script>
> </body>
> </html>
>
> I can open molecule files from the standalone application, but I haven't any
> luck when I tried to use the applet using the _javascript_ library. I wonder
> if this is a permisology problem or an applet problem.
>
> Thanks in advance,
>
> Freddy A. Rojas P.
>
>

