Difference between revisions of "Support/Windows"
AngelHerraez (talk | contribs) (→Creating shortcuts to Jmol application) |
AngelHerraez (talk | contribs) (shortcuts and non-default language) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
=== Jmol on Windows === | === Jmol on Windows === | ||
− | Jmol runs without problems on Windows | + | Jmol runs without problems on computers with Windows 95 or later, using Oracle's Java virtual machines, as an [[Jmol_Application|Application]]. Running [[Jmol_Applet|Applet]]s inside a web page relies also on the Java virtual machine, but has been disabled in most web browsers. The substitue for web pages is the [[JSmol]] object which runs without problems and provides the same functionality as the Jmol application. |
+ | |||
=== Creating shortcuts to Jmol application === | === Creating shortcuts to Jmol application === | ||
Line 12: | Line 13: | ||
: For more flexibility, you may instead wish to call Java explicitly using this: | : For more flexibility, you may instead wish to call Java explicitly using this: | ||
:: <code>java -jar "C:\Program files\Jmol\Jmol.jar"</code> | :: <code>java -jar "C:\Program files\Jmol\Jmol.jar"</code> | ||
− | : | + | : and if the system is not configured to locate the Java executable, you will need to indicate its full path, like e.g. |
− | : | + | :: <code>"C:\Program files\Java\jre1.8.0_251\bin\java" -jar "C:\Program files\Jmol\Jmol.jar"</code> |
− | :: <code>"C:\Program files\ | + | : These last two syntaxes allow to add extra start-up specifications, between <code>java</code> and <code>-jar</code>, like the amount of memory to be used, the window size, or the execution of a script, etc. (see [[Jmol_Application#Command_line_options | Command line options]]). |
+ | : For example, to force the Jmol interface in a language different from the system's language, you may add either of these to the <code>target</code> textbox (example for Brazilian Portuguese): | ||
+ | :: <code>"C:\Program files\Jmol\Jmol.jar" <font color=purple>-J "set language pt_BR"</font> </code> | ||
+ | :: <code>java <font color=purple>-Duser.language=pt_BR</font> -jar "C:\Program files\Jmol\Jmol.jar"</code> | ||
+ | : Another example: to start Jmol running an initial custom script (set of commands), prepare such script in a text file and use this: | ||
+ | :: <code>"C:\Program files\Jmol\Jmol.jar" <font color=purple>-s "myScript.txt"</font> </code> | ||
* '''''Start in:''''' you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open". If not specified, Jmol will ususally point to ''My documents'', or ''Documents'', or the ''Desktop''. | * '''''Start in:''''' you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open". If not specified, Jmol will ususally point to ''My documents'', or ''Documents'', or the ''Desktop''. | ||
− | |||
* '''''Change Icon''''': you can get a Jmol icon from the [[Recycling Corner]]. | * '''''Change Icon''''': you can get a Jmol icon from the [[Recycling Corner]]. | ||
Latest revision as of 09:56, 14 August 2021
- Description of files in Jmol+JSmol distribution
- File formats read or written by Jmol
- The Jmol scripting interface
- Scripting as a programming language
- Complete reference of scripting commands:
- Loading models directly from databases
- Mouse manual
- Default colors used by Jmol
- Atom sets predefined in Jmol
- Support for bond orders · isotopes · stereochemistry · hydrogen bonds
- Jmol as editor
- Multi-touch support
- Copying and pasting state scripts between applets.
- Backward compatibility (changes of behavior across versions)
- Features added since version 10
- Users mailing list (and a mirror)
Contents
Jmol on Windows
Jmol runs without problems on computers with Windows 95 or later, using Oracle's Java virtual machines, as an Application. Running Applets inside a web page relies also on the Java virtual machine, but has been disabled in most web browsers. The substitue for web pages is the JSmol object which runs without problems and provides the same functionality as the Jmol application.
Creating shortcuts to Jmol application
The details of creating a Windows shortcut and a Start menu entry are out of the scope of this wiki. What is given here are the specific details for Jmol.
Shortcut properties must be (under the Shortcut tab):
- Target: the place where you have put Jmol files (usually when you uncompressed the distribution
gz
orzip
file), including full pathname and filename and all between double quotes. Example:
"C:\Program files\Jmol\Jmol.jar"
- For more flexibility, you may instead wish to call Java explicitly using this:
java -jar "C:\Program files\Jmol\Jmol.jar"
- and if the system is not configured to locate the Java executable, you will need to indicate its full path, like e.g.
"C:\Program files\Java\jre1.8.0_251\bin\java" -jar "C:\Program files\Jmol\Jmol.jar"
- These last two syntaxes allow to add extra start-up specifications, between
java
and-jar
, like the amount of memory to be used, the window size, or the execution of a script, etc. (see Command line options). - For example, to force the Jmol interface in a language different from the system's language, you may add either of these to the
target
textbox (example for Brazilian Portuguese):"C:\Program files\Jmol\Jmol.jar" -J "set language pt_BR"
java -Duser.language=pt_BR -jar "C:\Program files\Jmol\Jmol.jar"
- Another example: to start Jmol running an initial custom script (set of commands), prepare such script in a text file and use this:
"C:\Program files\Jmol\Jmol.jar" -s "myScript.txt"
- Start in: you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open". If not specified, Jmol will ususally point to My documents, or Documents, or the Desktop.
- Change Icon: you can get a Jmol icon from the Recycling Corner.
The same applies to entries in Windows Start menu, or Programs menu.
Associating molecular files in hard disk with Jmol application
You can configure Windows Explorer (file manager) so that double-clicking on a pdb
file, or mol
, xyz
, etc. file (or right-clicking for options in the pop-up menu) will open it with Jmol application.
This is how to do it:
- Locate the application file, Jmol.jar (you decided where to put it when you uncompressed the downloaded Jmol distribution file, jmol-11.xx.xx-binary.tar.gz or jmol-11.xx.xx-binary.zip).
- Locate the file javaw.exe in the Java installation folder (usually it will be somewhere like C:\Program files\Java\bin\).
- Open windows explorer / file manager, open menu "Tools → Folder options", "File types" tab, and scroll to
pdb
(or any other extension that you want associated to Jmol, likemol
,mol2
orxyz
). Select its entry. - Click on "Advanced options" button and then either "Edit" the default "open" action or create a "New" action.
- In the textbox under "Action" you can type "open" or whatever you want it to be called in the pop-up menu; under "Application used" type (including the quotes and the final %1):
"put here the path and filename of javaw.exe" -jar "put here the path and filename of Jmol.jar" "%1"
For example:
"C:\Program files\Java\bin\javaw.exe" -jar "C:\Program files\Jmol\Jmol.jar" "%1"
Linking from PowerPoint to molecule files so that they open in Jmol application
You can set a hyperlink for any object in MS-PowerPoint that points to a pdb
, mol
, etc. file and have it opened in Jmol, by setting the default ("open") action of such file extensions, as described in the above sub-section.