4.2.- Producing web pages from Jmol

Tutorial of the "Export to Web" module (E2W) at http://www.uwosh.edu/faculty_staff/gutow/Jmol_Web_Page_Maker/Export_to_web_tutorial.shtml

Also, the supplement in my book (lulu.com, 1,80€ pdf download)

This E2W module produces a webpage with the models as displayed in Jmol. Then you just need to edit the page to add titles, text...

For the most simple method, you should type "." for both paths (this dot means look in the same folder where the page is). In this way, we have easily portable webpages (but you will end up having many copies of the same files in your website).

Warning: for this to work, however, the resulting folder must contain not only the molecule, the state script and the webpage (all produced and saved by E2W) but also the Jmol applet files, i.e. JmolApplet.jar and Jmol.js. These files will be put there automatically by the E2W module, if they are available beforehand.

Solution A:

If from the downloaded Jmol you only extracted Jmol.jar, then it cannot locate and include the needed applet files.

Then, you can manually extract from the downloaded zipfile the 2 files JmolApplet.jar and Jmol.js and copy them to the folder generated by E2W. The page will now work.

Solution B:

If from the beginning you extracted from the downloaded zipfile both Jmol.jar, JmolApplet.jar and Jmol.js, when you open the Jmol application its E2W module will automatically copy the needed files to the folder it produces, and the webpage will work straight away.