TightVNC Java Viewer version 1.3.10
======================================================================
This distribution is based on the standard VNC source and includes new
TightVNC-specific features and fixes, such as additional low-bandwidth
optimizations, major GUI improvements, and more.
Copyright (C) 1999 AT&T Laboratories Cambridge.
Copyright (C) 2000 Tridia Corp.
Copyright (C) 2002-2003 RealVNC Ltd.
Copyright (C) 2001-2004 HorizonLive.com, Inc.
Copyright (C) 2000-2007 Constantin Kaplinsky
Copyright (C) 2000-2009 TightVNC Group
All rights reserved.
This software is distributed under the GNU General Public Licence as
published by the Free Software Foundation. See the file LICENCE.TXT for the
conditions under which this software is made available. TightVNC also
contains code from other sources. See the Acknowledgements section below, and
the individual files for details of the conditions under which they are made
available.
Compiling from the sources
==========================
To compile all the .java files to .class files, simply do:
% make all
This will also generate a JAR (Java archive) file containing all the classes.
Most JVM (Java Virtual Machine) implementations are able to use either a set
of .class files, or the JAR archive.
Installation
============
There are three basic ways to use TightVNC Java viewer:
1. Running applet as part of TightVNC server installation.
Both the Unix and Windows versions of TightVNC servers include small
built-in HTTP server which can serve Java viewer to Web clients. This
enables easy Web access to the shared desktop without need to install
any software on the client computer. Unix and Windows versions of
TightVNC servers are different in the way they store the .class and .jar
files: the Unix server (Xvnc) is able to serve any set of files present
in a particular directory, while the Windows server (WinVNC) has all the
.class and .jar files inside the WinVNC executable file. Therefore, for
Xvnc, it's enough to copy the files into a correct directory, but for
WinVNC, the server binaries should be rebuild if the built-in Java
viewer should be updated.
To install the Java viewer under Xvnc, copy all the .class files, the
.jar file and the .vnc files to an installation directory (e.g.
/usr/local/vnc/classes):
cp *.class *.jar *.vnc /usr/local/vnc/classes
Also, make sure that the vncserver script is configured to point to the
installation directory (see the Xvnc manual page for the description of
the -httpd command-line option).
2. Running applet hosted on a standalone Web server.
Another possibility to use the Java viewer is to install it under a
fully-functional HTTP server such as Apache or IIS. Obviously, this
method requires running an HTTP server, and due to the Java security
restrictions, it's also required that the server should be installed on
the same machine which is running the TightVNC server. In this case,
installation is simply copying the .class and .jar files into a
directory that is under control of the HTTP server. Also, an HTML page
should be created which will act as a the base document for the viewer
applet (see an example named index.html in this distribution).
NOTE: Provided index.html page is an example only. Before using that
file, edit it with a text editor. See more information inside
index.html.
3. Running the viewer as a standalone application.
Finally, the Java viewer can be executed locally on the client machine,
but this method requires installation of either JRE (Java Runtime
Environment) or JDK (Java Development Kit). If all the .class files are
in the current directory, the Java viewer can be executed like this,
from the command line:
java VncViewer HOST vnchost PORT 5900
The HOST parameter is required, PORT defaults to 5900 if omitted, and
there is a number of other optional parameters, see the Parameters
section below.
Parameters
==========
TightVNC Java viewer supports a number of parameters allowing you to
customize its behavior. Most parameters directly correspond to the settings
found in the Options window. However, there are parameters that do not
correspond to those settings. For such parameters, you can see a note "no GUI
equivalent", in the documentation below.
Parameters can be specified in one of the two ways, depending on how the Java
viewer is used:
1. When the Java viewer is run as an applet (embedded within an HTML
document), parameters should be specified in the HTML tags,
within the appropriate