Difference between revisions of "Support/Windows"

From Jmol
Jump to navigation Jump to search
(Linking from PowerPoint)
m (formatting)
Line 8: Line 8:
  
 
Shortcut properties must be (under ''Shortcut'' tab):
 
Shortcut properties must be (under ''Shortcut'' tab):
* ''Target'': the place where you have put Jmol files (usually when you uncompressed the distribution gz or zip file), including full pathname and filename and all between double quotes. Example: <br />
+
* ''Target'': the place where you have put Jmol files (usually when you uncompressed the distribution <code>gz</code> or <code>zip</code> file), including full pathname and filename and all between double quotes. Example: <br />
<code>"C:\Program files\Jmol\Jmol.jar"</code>
+
:: <code>"C:\Program files\Jmol\Jmol.jar"</code>
 
* ''Start in'': you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open".
 
* ''Start in'': you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open".
  
Line 15: Line 15:
  
  
=== Associating molecular files (e.g. PDB) in hard disk with Jmol application ===
+
=== 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 right-clicking for options in the pop-up menu) will open it with Jmol application.
+
You can configure Windows Explorer (file manager) so that double-clicking on a <code>pdb</code> file, or <code>mol</code>, <code>xyz</code>, etc. file (or right-clicking for options in the pop-up menu) will open it with Jmol application.
  
 
This is how to do it:
 
This is how to do it:
Line 23: Line 23:
 
# Locate the application file, {{File|Jmol.jar}} (you decided where to put it when you uncompressed the downloaded Jmol distribution file, {{File|jmol-11.xx.xx-binary.tar.gz}} or {{File|jmol-11.xx.xx-binary.zip}}).
 
# Locate the application file, {{File|Jmol.jar}} (you decided where to put it when you uncompressed the downloaded Jmol distribution file, {{File|jmol-11.xx.xx-binary.tar.gz}} or {{File|jmol-11.xx.xx-binary.zip}}).
 
# Locate the file {{File|javaw.exe}} in the Java installation folder (usually it will be somewhere like {{Directory|C:\Program files\Java\bin\}}).
 
# Locate the file {{File|javaw.exe}} in the Java installation folder (usually it will be somewhere like {{Directory|C:\Program files\Java\bin\}}).
# Open windows explorer / file manager, open menu "{{MenuItem|Tools}} &rarr; {{MenuItem|Folder options}}", "File types" tab, and scroll to PDB (or any other extension that you want associated to Jmol, like MOL or XYZ). Select its entry.
+
# Open windows explorer / file manager, open menu "{{MenuItem|Tools}} &rarr; {{MenuItem|Folder options}}", "File types" tab, and scroll to <code>pdb</code> (or any other extension that you want associated to Jmol, like <code>mol</code>, <code>mol2</code> or <code>xyz</code>). Select its entry.
 
# Click on "Advanced options" button and then either "Edit" the default "open" action or create a "New" action.
 
# 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):<br />'''"'''''put here the path and filename of javaw.exe'''''" -jar "'''''put here the path and filename of Jmol.jar'''''" "%1"'''<br />For example:<br />
 
# 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):<br />'''"'''''put here the path and filename of javaw.exe'''''" -jar "'''''put here the path and filename of Jmol.jar'''''" "%1"'''<br />For example:<br />
<code>"C:\Program files\Java\bin\javaw.exe" -jar "C:\Program files\Jmol\Jmol.jar" "%1"</code>
+
: <code>"C:\Program files\Java\bin\javaw.exe" -jar "C:\Program files\Jmol\Jmol.jar" "%1"</code>
  
  
 
=== Linking from PowerPoint to molecule files so that they open in Jmol application ===
 
=== 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.
+
You can set a hyperlink for any object in MS-PowerPoint that points to a <code>pdb</code>, <code>mol</code>, 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.
  
  
 
=== Comments/Discussion ===
 
=== Comments/Discussion ===
 +
 +
:

Revision as of 09:36, 8 April 2008

Jmol + JSmol Documentation

Jmol on Windows

Jmol runs without problems on Windows 9x/XP/Vista computers using Sun's java virtual machines, both as Applet as well as 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 Shortcut tab):

  • Target: the place where you have put Jmol files (usually when you uncompressed the distribution gz or zip file), including full pathname and filename and all between double quotes. Example:
"C:\Program files\Jmol\Jmol.jar"
  • Start in: you can put your working folder, if you want; that will be the default location Jmol will show on "File > Open".

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:

  1. Locate the application file, File icon.gifJmol.jar (you decided where to put it when you uncompressed the downloaded Jmol distribution file, File icon.gifjmol-11.xx.xx-binary.tar.gz or File icon.gifjmol-11.xx.xx-binary.zip).
  2. Locate the file File icon.gifjavaw.exe in the Java installation folder (usually it will be somewhere like C:\Program files\Java\bin\).
  3. Open windows explorer / file manager, open menu "ToolsFolder options", "File types" tab, and scroll to pdb (or any other extension that you want associated to Jmol, like mol, mol2 or xyz). Select its entry.
  4. Click on "Advanced options" button and then either "Edit" the default "open" action or create a "New" action.
  5. 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.


Comments/Discussion