Difference between revisions of "Troubleshooting/Applet"

From Jmol
Jump to navigation Jump to search
(new section: troubleshooting the applet)
 
(format)
Line 1: Line 1:
 
= Problems running the Jmol Applet in a web page =
 
= Problems running the Jmol Applet in a web page =
  
* Problem:
+
== The applet does not show up ==
The applet does not show up.
+
 
:* Symptoms:
+
First of all, wait. Java may take time to load the first time, and the applet must be downloaded.
A black square is displayed with a message <code>Error. Click to get more information</code>. When you click, a dialog opens:
+
 
 +
=== Yellow square with a message ===
 +
* Symptoms:
 +
A yellow square is displayed in the place the applet should go, with a message inside.
 +
* Solution:
 +
Read the message. Either you don't have Java installed, or the browser is configured not to use it. Enable Java for the browser or (re)install Java from [http://java.com/ Sun's site].
 +
 
 +
=== Black square with an error ===
 +
* Symptoms:
 +
A black square is displayed in the place the applet should go, with a message inside: <code>Error. Click to get more information</code>. When you click, a dialog opens:
 
  Application error.
 
  Application error.
 
  The application could not execute.
 
  The application could not execute.
Line 14: Line 23:
 
  (etc.)
 
  (etc.)
  
:* Solution:
+
* Solution:
 
Check if you have forgotten to include a call to <code>jmolInitialize()</code> in your page's source code.
 
Check if you have forgotten to include a call to <code>jmolInitialize()</code> in your page's source code.
 
[http://jmol.sourceforge.net/jslibrary/#jmolInitialize Instructions for using jmolInitialize() and the Jmol.js library].
 
[http://jmol.sourceforge.net/jslibrary/#jmolInitialize Instructions for using jmolInitialize() and the Jmol.js library].

Revision as of 15:43, 29 January 2009

Problems running the Jmol Applet in a web page

The applet does not show up

First of all, wait. Java may take time to load the first time, and the applet must be downloaded.

Yellow square with a message

  • Symptoms:

A yellow square is displayed in the place the applet should go, with a message inside.

  • Solution:

Read the message. Either you don't have Java installed, or the browser is configured not to use it. Enable Java for the browser or (re)install Java from Sun's site.

Black square with an error

  • Symptoms:

A black square is displayed in the place the applet should go, with a message inside: Error. Click to get more information. When you click, a dialog opens:

Application error.
The application could not execute.
Click on 'Details' for more information.

When yopu click, the Java console opens:

load: class JmolApplet not found.
java.lang.ClassNotFoundException: JmolApplet
(etc.)
  • Solution:

Check if you have forgotten to include a call to jmolInitialize() in your page's source code. Instructions for using jmolInitialize() and the Jmol.js library.

Contributors

AngelHerraez, Cudo29