Difference between revisions of "Files Description/Jmol 14"
AngelHerraez (talk | contribs) (Split applet files after 11.1.36) |
AngelHerraez (talk | contribs) (more details of the different applet files) |
||
Line 7: | Line 7: | ||
<br> | <br> | ||
{{File|jmol-x.x.x-full.tar.gz}} contains the full source code) | {{File|jmol-x.x.x-full.tar.gz}} contains the full source code) | ||
− | + | ||
==== Jmol.jar ==== | ==== Jmol.jar ==== | ||
− | The application executable file (a program written in Java). This can be run as any other program: opens in its own window, can be resized or minimized, admits drag-and-drop, has a top menu, can open and save files, etc. | + | The application executable file (a program written in Java). This can be run as any other program: opens in its own window, can be resized or minimized, admits drag-and-drop, has a top menu, can open and save files, etc. It can be open from the command line (particulary, using the shell or bacth files described below), but if Java is properly configured in your system, it's usually enough to double-click on the file. |
==== JmolApplet.jar ==== | ==== JmolApplet.jar ==== | ||
Line 18: | Line 18: | ||
This is an all-in-one file, kept mainly for compatibility with old pages that call it explicitly. Current recommended procedure is to use the split version ({{File|JmolApplet0.jar}} etc.). In particular, {{File|Jmol.js}} uses the split version. | This is an all-in-one file, kept mainly for compatibility with old pages that call it explicitly. Current recommended procedure is to use the split version ({{File|JmolApplet0.jar}} etc.). In particular, {{File|Jmol.js}} uses the split version. | ||
+ | |||
+ | You may wish to use this if you want to keep your website simple or you just want to upload a single jar file whenever new versions are released. | ||
+ | However, this will load Jmol somewhat slower than the split versions (described below), as all the modules must get loaded onto a user's machine before any structure is displayed. | ||
+ | |||
+ | To invoke JmolApplet.jar from Jmol.js, either: | ||
+ | |||
+ | a) just put it in the directory containing the HTML page requiring it and | ||
+ | do not use jmolInitialize(), | ||
+ | |||
+ | or | ||
+ | |||
+ | b) identify it explicitly in jmolInitialize(), for example: | ||
+ | jmolInitialize("directory-containing-jar-files", "JmolApplet.jar") | ||
==== JmolAppletSigned.jar ==== | ==== JmolAppletSigned.jar ==== | ||
An equivalent version of the applet, but this is a "signed" applet (a term in Java security language). This means it must be authorized by the web page visitor for it to run, but then it will have less security restrictions for file access. For example, it can access files on any part of the user's hard disk or from any other web server. | An equivalent version of the applet, but this is a "signed" applet (a term in Java security language). This means it must be authorized by the web page visitor for it to run, but then it will have less security restrictions for file access. For example, it can access files on any part of the user's hard disk or from any other web server. | ||
+ | |||
+ | Typically users get a message asking if they want to accept the | ||
+ | "certificate" or if they "trust" the applet, but this security feature is not always enabled. | ||
+ | JmolAppletSigned.jar should be used with this in mind. Other than reading | ||
+ | files, Jmol does not currently utilize other capabilities of signed | ||
+ | applets, such as accessing the System clipboard or writing files. Use only | ||
+ | if you know what you are doing and have considered the security issues. | ||
+ | |||
+ | To invoke JmolAppletSigned.jar from Jmol.js, use: | ||
+ | jmolInitialize("directory-containing-jar-files", "JmolAppletSigned.jar") | ||
==== Jmol.js ==== | ==== Jmol.js ==== | ||
− | The library, written in | + | The library, written in JavaScript language, that assists in the programming of web pages that use Jmol applet, without the need to know and write detailed JmolApplet code. |
− | This library uses the split version of the applet (unsigned or signed). | + | This library uses by default the split version of the applet (unsigned or signed). |
Fully documented at http://jmol.org/jslibrary/ | Fully documented at http://jmol.org/jslibrary/ | ||
Line 33: | Line 56: | ||
==== jmol ==== | ==== jmol ==== | ||
− | ???? | + | ???? (Some kind of batch file) |
==== jmol.bat ==== | ==== jmol.bat ==== | ||
Line 41: | Line 64: | ||
==== jmol.mac ==== | ==== jmol.mac ==== | ||
− | ??? | + | ??? (Some kind of batch file) |
==== jmol.sh ==== | ==== jmol.sh ==== | ||
Line 64: | Line 87: | ||
==== JmolApplet0.jar, JmolApplet1.jar, ... JmolApplet6.jar, JmolApplet_i18n.jar ==== | ==== JmolApplet0.jar, JmolApplet1.jar, ... JmolApplet6.jar, JmolApplet_i18n.jar ==== | ||
− | The applet divided up into several pieces, for faster loading. The set of these files is equivalent to {{File|JmolApplet.jar}}. This split version is used by {{File|Jmol.js}}. | + | The applet divided up into several pieces, hopefully for faster loading. The set of these files is equivalent to the single {{File|JmolApplet.jar}}. This split version is used by default by {{File|Jmol.js}}. |
{{File|JmolApplet_i18n.jar}} is the localization module of the applet (i.e., translation of the interface into several languages). | {{File|JmolApplet_i18n.jar}} is the localization module of the applet (i.e., translation of the interface into several languages). | ||
Line 71: | Line 94: | ||
==== JmolAppletSigned0.jar, JmolAppletSigned1.jar, ... JmolAppletSigned6.jar, JmolAppletSigned_i18n.jar ==== | ==== JmolAppletSigned0.jar, JmolAppletSigned1.jar, ... JmolAppletSigned6.jar, JmolAppletSigned_i18n.jar ==== | ||
− | The signed version of the split applet. | + | The signed version of the above split applet. (See JmolAppletSigned.jar above for description of what a "signed" applet is.) |
Line 86: | Line 109: | ||
both allow users to access parts of Jmol you might not have considered. | both allow users to access parts of Jmol you might not have considered. | ||
− | The set of these files is equivalent to {{File|JmolApplet.jar}}. | + | The set of these files is equivalent to the single {{File|JmolApplet.jar}}. |
− | This split version is the one that will be used if you use {{File|Jmol.js}}. | + | This split version is the one that will be used by default if you use {{File|Jmol.js}}. |
− | + | For that, use the simplest form of jmolInitialize(), just | |
indicating the directory containing the set of jar files: | indicating the directory containing the set of jar files: | ||
jmolInitialize("directory-containing-jar-files") | jmolInitialize("directory-containing-jar-files") | ||
Line 102: | Line 125: | ||
Typically users get a message asking if they want to accept the | Typically users get a message asking if they want to accept the | ||
certificate for '''each''' of the 16 loadable files. For this reason, | certificate for '''each''' of the 16 loadable files. For this reason, | ||
− | + | this version may not be of general use. | |
− | To use | + | To use this with Jmol.js, use the form: |
jmolInitialize("directory-containing-jar-files", true) | jmolInitialize("directory-containing-jar-files", true) | ||
or | or |
Revision as of 15:27, 12 May 2007
This information is also included in Jmol distribution README file.
Contents
Common files in Jmol distributions
(This refers to both jmol-x.x.x-binary.zip and
jmol-x.x.x-binary.tar.gz
jmol-x.x.x-full.tar.gz contains the full source code)
Jmol.jar
The application executable file (a program written in Java). This can be run as any other program: opens in its own window, can be resized or minimized, admits drag-and-drop, has a top menu, can open and save files, etc. It can be open from the command line (particulary, using the shell or bacth files described below), but if Java is properly configured in your system, it's usually enough to double-click on the file.
JmolApplet.jar
The applet, i.e. a version of the program that will only run when embedded in a web page.
This is an all-in-one file, kept mainly for compatibility with old pages that call it explicitly. Current recommended procedure is to use the split version (JmolApplet0.jar etc.). In particular, Jmol.js uses the split version.
You may wish to use this if you want to keep your website simple or you just want to upload a single jar file whenever new versions are released. However, this will load Jmol somewhat slower than the split versions (described below), as all the modules must get loaded onto a user's machine before any structure is displayed.
To invoke JmolApplet.jar from Jmol.js, either:
a) just put it in the directory containing the HTML page requiring it and do not use jmolInitialize(),
or
b) identify it explicitly in jmolInitialize(), for example:
jmolInitialize("directory-containing-jar-files", "JmolApplet.jar")
JmolAppletSigned.jar
An equivalent version of the applet, but this is a "signed" applet (a term in Java security language). This means it must be authorized by the web page visitor for it to run, but then it will have less security restrictions for file access. For example, it can access files on any part of the user's hard disk or from any other web server.
Typically users get a message asking if they want to accept the "certificate" or if they "trust" the applet, but this security feature is not always enabled. JmolAppletSigned.jar should be used with this in mind. Other than reading files, Jmol does not currently utilize other capabilities of signed applets, such as accessing the System clipboard or writing files. Use only if you know what you are doing and have considered the security issues.
To invoke JmolAppletSigned.jar from Jmol.js, use:
jmolInitialize("directory-containing-jar-files", "JmolAppletSigned.jar")
Jmol.js
The library, written in JavaScript language, that assists in the programming of web pages that use Jmol applet, without the need to know and write detailed JmolApplet code.
This library uses by default the split version of the applet (unsigned or signed).
Fully documented at http://jmol.org/jslibrary/
jmol
???? (Some kind of batch file)
jmol.bat
A batch file to start Jmol application under Windows.
jmol.mac
??? (Some kind of batch file)
jmol.sh
A shell script to start Jmol application under Unix-like systems, like Linux/BSD/Solaris and Cygwin for Windows.
COPYRIGHT.txt
The copyright explanations.
LICENSE.txt
The GNU Lesser General Public License, under which Jmol is released.
README.txt
A general description of Jmol package and sources of information, including this file list documentation.
Files specific to Jmol versions up to 11.1.29
JmolApplet0.jar, JmolApplet1.jar, ... JmolApplet6.jar, JmolApplet_i18n.jar
The applet divided up into several pieces, hopefully for faster loading. The set of these files is equivalent to the single JmolApplet.jar. This split version is used by default by Jmol.js.
JmolApplet_i18n.jar is the localization module of the applet (i.e., translation of the interface into several languages). This must accompany the JmolApplet#.jar set if you want the interface in a language different from English. (The language shown will depend on the operating system's language.)
JmolAppletSigned0.jar, JmolAppletSigned1.jar, ... JmolAppletSigned6.jar, JmolAppletSigned_i18n.jar
The signed version of the above split applet. (See JmolAppletSigned.jar above for description of what a "signed" applet is.)
Files specific to Jmol versions after 11.1.36
JmolApplet0.jar, JmolApplet0(severalNamesHere).jar
The applet is divided up into several pieces according to their function, so that if a page does not require a component, that component is not downloaded from the server. It is still recommended that you put all JmolApplet0*.jar files on your server even if your page does not use the capabilities provided by some of the files, because the pop-up menu and Jmol console both allow users to access parts of Jmol you might not have considered.
The set of these files is equivalent to the single JmolApplet.jar.
This split version is the one that will be used by default if you use Jmol.js. For that, use the simplest form of jmolInitialize(), just indicating the directory containing the set of jar files:
jmolInitialize("directory-containing-jar-files")
for example,
jmolInitialize(".") // jar files are in the same folder as the web page jmolInitialize("../jmol") // jar files are in a parallel folder, named 'jmol'.
JmolAppletSigned0.jar, JmolAppletSigned0(severalNamesHere).jar
The signed version of the new split applet. This version allows the user to access files anywhere on a hard drive and from any location on the web. Typically users get a message asking if they want to accept the certificate for each of the 16 loadable files. For this reason, this version may not be of general use.
To use this with Jmol.js, use the form:
jmolInitialize("directory-containing-jar-files", true)
or
jmolInitialize("directory-containing-jar-files", "JmolAppletSigned0.jar")
Notes
- Given the descriptions, you will realize that the distribution package contains 4 full copies of the applet (signed or unsigned, split or not).