aboutsummaryrefslogtreecommitdiffstats
path: root/java/com
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2018-10-09 10:23:59 +0200
committerPierre Ossman <ossman@cendio.se>2018-10-09 10:25:17 +0200
commit4a4453fc69cf56f9991a13a62023969dcf5b8a4f (patch)
treedc89029e8a2b9976ce2f47ae5c50bdcf86bd277a /java/com
parent2b69d385e669bf97d872fd116c7f1da5aee7cdfd (diff)
downloadtigervnc-4a4453fc69cf56f9991a13a62023969dcf5b8a4f.tar.gz
tigervnc-4a4453fc69cf56f9991a13a62023969dcf5b8a4f.zip
Remove Java web server
Applets don't work anymore so remove everything that has to do with serving them.
Diffstat (limited to 'java/com')
-rw-r--r--java/com/tigervnc/vncviewer/README80
-rw-r--r--java/com/tigervnc/vncviewer/favicon.icobin1150 -> 0 bytes
-rw-r--r--java/com/tigervnc/vncviewer/index.html20
-rw-r--r--java/com/tigervnc/vncviewer/index.vnc22
4 files changed, 9 insertions, 113 deletions
diff --git a/java/com/tigervnc/vncviewer/README b/java/com/tigervnc/vncviewer/README
index d0baa930..3019f8d4 100644
--- a/java/com/tigervnc/vncviewer/README
+++ b/java/com/tigervnc/vncviewer/README
@@ -27,86 +27,24 @@ available.
Installation
============
-There are three basic ways to use the TigerVNC Java Viewer:
+The TigerVNC Java Viewer requires installation of either a JRE (Java
+Runtime Environment) or a JDK (Java Development Kit). If VncViewer.jar is
+in the current directory, then the TigerVNC Java Viewer can be launched
+with the following command line:
- 1. Running the applet as part of a TigerVNC Server installation.
+ java -jar VncViewer.jar [parameters]
- Both the Unix and Windows versions of the TigerVNC Server include a small
- built-in HTTP server that can serve the TigerVNC Java Viewer to web
- clients. This enables easy access to the shared desktop without the need
- to install any software on the client machine.
-
- The Unix TigerVNC Server (Xvnc) is able to serve up any set of files that
- are present in a particular directory, which is specified in the -httpd
- argument to Xvnc. The default version of the vncserver script will look
- for a directory called vnc/classes, one level up from the directory
- containing the vncserver script, then it will look for a directory called
- /usr/share/vnc/classes, then /usr/local/vnc/classes. It will set the
- -httpd argument to Xvnc to the first one of these VNC classes directories
- it finds. Thus, one can easily deploy a modified version of the TigerVNC
- Java Viewer by simply copying a new version of VncViewer.jar and/or
- index.vnc into the VNC classes directory.
-
- On Windows and Linux, the embedded applet can be drag-undocked from the
- browser window and converted to a standalone application. The drag
- gesture ALT+drag on Windows, and SHIFT+drag on Linux.
-
- In the case of the Windows TigerVNC Server, VncViewer.jar and index.vnc
- are embedded as resources in the WinVNC executable, so deploying a
- modified version of the TigerVNC Java Viewer on a Windows server requires
- rebuilding WinVNC.
-
- 2. Running the applet from a standalone web server.
-
- Another possibility for using the TigerVNC Java Viewer is to install it
- under a fully-functional HTTP server, such as Apache or IIS. Due to Java
- security restrictions, the applet must be signed in order for it to
- connect to a VNC server running on a different machine from the HTTP
- server.
-
- One can install the TigerVNC Java Viewer by simply copying the .class and
- .jar files into a directory that is under the control of the HTTP server.
- Also, an HTML page should be created to act as a the base document for the
- TigerVNC Java Viewer applet (an example named index.html is provided in
- this directory. Modify this file to suit your specific needs.)
-
- 3. Running the viewer as a standalone application.
-
- Finally, the TigerVNC Java Viewer can be executed locally on the client
- machine, but this method requires installation of either a JRE (Java
- Runtime Environment) or a JDK (Java Development Kit). If VncViewer.jar is
- in the current directory, then the TigerVNC Java Viewer can be launched
- with the following command line:
-
- java -jar VncViewer.jar [parameters]
-
- Add an argument of -? to the above command line to print a list of
- optional parameters supported by VncViewer.
+Add an argument of -? to the above command line to print a list of
+optional parameters supported by VncViewer.
Parameters
==========
The TigerVNC Java Viewer accepts a number of optional parameters, allowing you
-to customize its behavior.
-
-Parameters can be specified in one of the two ways, depending on how the
-TigerVNC Java Viewer is used:
-
- 1. When the TigerVNC Java Viewer is run as an applet (embedded within an HTML
- document), parameters should be specified using the <PARAM> HTML tags
- within the appropriate <APPLET> section. Example:
-
- <APPLET CODE=com.tigervnc.vncviewer.VncViewer ARCHIVE=VncViewer.jar
- WIDTH=400 HEIGHT=300>
- <PARAM NAME="PORT" VALUE=5901>
- <PARAM NAME="ScalingFactor" VALUE=50>
- </APPLET>
-
- 2. When run as a standalone application, the TigerVNC Java Viewer reads
- parameters from the command line. Example:
+to customize its behavior. Example:
- java -jar VncViewer.jar Port=5901 ScalingFactor=50
+ java -jar VncViewer.jar Port=5901 ScalingFactor=50
Both parameter names and their values are case-insensitive.
diff --git a/java/com/tigervnc/vncviewer/favicon.ico b/java/com/tigervnc/vncviewer/favicon.ico
deleted file mode 100644
index edbd4676..00000000
--- a/java/com/tigervnc/vncviewer/favicon.ico
+++ /dev/null
Binary files differ
diff --git a/java/com/tigervnc/vncviewer/index.html b/java/com/tigervnc/vncviewer/index.html
deleted file mode 100644
index ba00e26b..00000000
--- a/java/com/tigervnc/vncviewer/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!--
- index.html - an example HTML page for the TigerVNC Java Viewer applet, to
- be used with a standalone web server. Before using this example, please
- MAKE SURE to check the following:
-
- * the CODE and ARCHIVE attributes of the <APPLET> tag should point to
- the correct directory (this example assumes that this page is in the
- same directory as VncViewer.jar);
--->
-
-<HTML>
-<TITLE>
-TigerVNC desktop
-</TITLE>
-<APPLET CODE="com.tigervnc.vncviewer.VncViewer" ARCHIVE="VncViewer.jar"
- WIDTH=500>
-</APPLET>
-<BR>
-<A href="http://www.tigervnc.org/">TigerVNC site</A>
-</HTML>
diff --git a/java/com/tigervnc/vncviewer/index.vnc b/java/com/tigervnc/vncviewer/index.vnc
deleted file mode 100644
index 27bdebcb..00000000
--- a/java/com/tigervnc/vncviewer/index.vnc
+++ /dev/null
@@ -1,22 +0,0 @@
-<!--
- index.vnc - default HTML page for TigerVNC Java viewer applet, to be
- used with Xvnc. On any file ending in .vnc, the HTTP server embedded in
- Xvnc will substitute the following variables when preceded by a dollar:
- USER, DESKTOP, DISPLAY, APPLETWIDTH, APPLETHEIGHT, WIDTH, HEIGHT, PORT,
- Use two dollar signs ($$) to get a dollar sign in the generated
- HTML page.
--->
-
-<HTML>
-<TITLE>
-$USER's $DESKTOP desktop ($DISPLAY)
-</TITLE>
-<APPLET CODE=com.tigervnc.vncviewer.VncViewer ARCHIVE=VncViewer.jar
- WIDTH=$APPLETWIDTH HEIGHT=$APPLETHEIGHT>
-<param name=PORT value=$PORT>
-<param name="Embed" value="true">
-<param name="draggable" value="true">
-</APPLET>
-<BR>
-<A href="http://www.tigervnc.org/">TigerVNC site</A>
-</HTML>