Just after replying, I see now why it may be working in the same folder and not 
in the other. 
For clarification:

1) If you use

/var/www/html/jmol/JmolApplet.jar
/var/www/html/jmol/Jmol.js
/var/www/html/index.html

and

<script type="text/javascript" src="jmol/Jmol.js"></script>
jmolInitialize("jmol/");

Jmol will not start because the  JmolApplet0*.jar files are not there.


2) But if you use

/var/www/html/JmolApplet.jar
/var/www/html/jmol/Jmol.js
/var/www/html/index.html

and

<script type="text/javascript" src="jmol/Jmol.js"></script>
// jmolInitialize("jmol/");

That is, you do not call jmoInitialize(), then the deafult is to use 
JmolApplet.jar in the current 
folder, so it works


Anyway, as I said, it is recommended to use the  JmolApplet0*.jar set, so you 
should do:

3)
/var/www/html/jmol/JmolApplet0.jar
/var/www/html/jmol/JmolApplet0_Core.jar
/var/www/html/jmol/JmolApplet0_i18n.jar
   etc.
/var/www/html/jmol/Jmol.js
/var/www/html/index.html

and

<script type="text/javascript" src="jmol/Jmol.js"></script>
jmolInitialize("jmol/");


Another solution (not the recommended one):

4)
/var/www/html/JmolApplet.jar
/var/www/html/jmol/Jmol.js
/var/www/html/index.html

and

<script type="text/javascript" src="jmol/Jmol.js"></script>
jmolInitialize("jmol/", "JmolApplet.jar");

that is, to say specifically which applet file is to be used.

As I said, all this is explained in the doc. If you think it is not clear 
there, please say so and 
suggest an improvement in the wording, so we can update the page.



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to