[{ALLOW edit OWLusers}]
[{ALLOW view All}]

This material is distributed under the [GNU General Public License Version 2 | http://www.gnu.org/licenses/gpl-2.0.html]. To obtain a copy of the original source code, make a request on the [Wonderland Forum|https://groups.google.com/forum/#!forum/openwonderland].
\\
!!!Open Wonderland v0.5: Launching Clients using Java Web Start

by Jordan Slott (jslott@dev.java.net) and Jonathan Kaplan (jonathankap@gmail.com)
\\ \\
!!Introduction

Support for [Java Web Start|http://www.oracle.com/technetwork/java/javase/tech/index-jsp-136112.html] is built into Open Wonderland v0.5. The Wonderland server automatically supports launching clients from Java Web Start when you compile Open Wonderland from the source code (or from binary releases in the future). With Java Web Start, clients only need to open a URL in a web browser, and as long as Java SE 6 is installed on their system, the Open Wonderland client will be automatically downloaded and launched.
\\ \\
!!The Open Wonderland Server URL
When you start the Open Wonderland server, a web server is started which enables users to launch the client. This web page defaults to port 8080. For example, if the host name of your server is www.company.com, then the URL of the Open Wonderland client page will be http://www.company.com:8080. If you are unsure what the host name of your machine is, you can use the IP address of your server instead.

When you start the server, it displays a message with the URL of the web server. For example:
{{{
     [java] -----------------------------------------------------------
     [java] Wonderland web server started successfully.
     [java] Log files are in /Users/me/.wonderland-server/0.5-dev/log
     [java] Web server running on http://129.148.173.164:8080/
     [java] -----------------------------------------------------------
}}}
\\
!!Launching a Client
If you open the URL in a web browser, you should see the page below. Click the "Launch Wonderland 0.5" button to launch the client. It only needs to download the client software once; future attempts will use a cached version of the software. (click the image for a full-sized version).

[{Image src='client-webpage-thumbnail.jpg' width='..' height='..' align='left|center|right' style='..' class='..' }]
\\ 
!!Displaying the Error Log
When debugging a problem with Wonderland, it is often helpful to open the error log. This displays error messages that may explain problems you are experiencing in Wonderland. To open the error log, select the "Error Log" item from the "Help" menu:

[{Image src='error-log-menu.jpg' width='..' height='..' align='left|center|right' style='..' class='..' }]

This will bring up the error log window, which displays messages. You may be asked to configure the error log, for example to show more detail about a certain problem. If so, you can use the "configure" button on the error log window:

[{Image src='log-viewer.jpg' width='..' height='..' align='left|center|right' style='..' class='..' }]

If you are submitting a bug report to the Wonderland forum or the issue tracker, you will want to generate an error report. This includes lots of extra data to help track down the problem. To generate an error report, click on the "error report" button on the error log window shown above. Then copy and paste the resulting report into the bug report or forum post:

[{Image src='error-report.jpg' width='..' height='..' align='left|center|right' style='..' class='..' }]
\\
!!Displaying the Java Console

In some situations, the error needed to debug Wonderland may not be included in the error log. In this case, you may need to turn on the Java console, which displays all log messages for the client. To turn on the Java console:

!Showing the Java Console on Windows
# Make sure the Open Wonderland client is not running
# From the Start menu, select Control Panel.
# In the Control Panel, click on Java.
# In the Java Control Panel, click on the Advanced tab.
# Click on the + before Debugging and select Enable logging.
# Click on the + before Java console and click on Show console.
# Click OK

!Showing the Java Console on Mac OS
# Make sure the Open Wonderland client is not running
# Navigate to Applications --> Utilities --> Java
# Open Java Preferences
# Click the Advanced tab
# Under the Debugging heading, check Enable logging
# Under the Java console heading, click Show console
# Click Save and close the Java Preference dialog

!Showing the Java Console on Linux/Solaris
# Make sure the Open Wonderland client is not running
# From a terminal, enter javaws -viewer. Two windows should appear, one titled "Java Control Panel" and another titled "Java # Cache Viewer".
# On the window titled "Java Cache Viewer", click the Close button.
# In the Java Control Panel, click on the Advanced tab.
# Click on the + before Debugging and select Enable logging.
# Click on the + before Java console and click on Show console.
# Click OK