![]() | |||||
|
|
ava Log
If the Ultimate Button Bar applet encounters an error or detects a potential problem, it will write a message to the Java log. This information can be invaluable for finding errors that might prevent the applet from functioning as expected. Microsoft Internet Explorer (version 4.01 or higher) and Netscape Navigator allow you easily view the Java log by means of a "Java Console." A Java Console is a scrollable window that displays messages written to the Java log in real-time. It is highly recommend that you keep the Java Console window open while you are defining a button display as the messages displayed in the console can potentially save you a great deal of time and frustration in tracking down problems. Also, it is highly recommend that you set the UBBoption applet parameter to "develop" during development. This setting will allow warning messages to be logged in addition to error messages. Below are instructions for viewing the Java log when working with Microsoft Internet Explorer 4.01, Microsoft Internet Explorer 4.0, or with Netscape Navigator 4. | ||||
|
|
icrosoft Internet Explorer 4.01
Before you can use the Java Console in Microsoft Internet Explorer 4.01, the Java Console must be first enabled in the browser's options. To enable Java Console in Microsoft Internet Explorer 4.01, start by selecting the "Internet Options" menu item from the "View" menu. When the "Internet Options" dialog window is displayed, select the "Advanced" tab, then scroll through the list of advanced options until you see a section labeled "Java VM." One of the options under the "Java VM" section heading is titled "Java console enabled (requires restart)." Make sure that there is check mark in the option's checkbox. If there is not, click the checkbox to enable the option, the click the "OK" button and restart the browser.
Once you have enabled the Java Console, you can view messages logged by an applet by selecting the the "Java Console" option found in the "View menu." | ||||
|
|
icrosoft Internet Explorer 4.0
Microsoft Internet Explorer 4.0 does not have the capability of displaying messages in a console window as does Internet Explorer 4.01 and Navigator, but Internet Explorer 4.0 can create a text file that contains messages logged by Java applets. The log file that Internet Explorer creates is named "javalog.txt." If you are using Windows 95 or NT, the log file will most likely be found in the default directory:
It is important to note that before Internet Explorer will create a Java Log text file, Java Logging must be enabled in the browser's options. To enable Java Logging in Microsoft Internet Explorer 4.0, start by selecting the "Options" menu item from the "View" menu. When the "Options" dialog window is displayed, select the "Advanced" tab, then scroll through the list of advanced options until you see a section labeled "Java VM." One of the options under the "Java VM" section heading is titled "Java logging enabled." Make sure that there is checksum in the option's checkbox. If there is not, then click the checkbox to enable the option.
Once you have enabled Java Logging in Internet Explorer, you can view any messages logged by an applet by opening the log text file using a text editor, such as the "Notepad" accessory included with Windows 95 and NT. | ||||
|
|
etscape Navigator 4
Netscape Navigator logs Java messages to a "Java Console" window. To display the Java Console using Netscape Communicator (a.k.a. Navigator 4), select the "Java Console" menu item from the "Communicator" menu as shown below:
| ||||
| Copyright © 1998 by Modern Minds, Inc. | |||||