Change the default settings

Should you have problems with the JavaViewer, here's the place to look for help or report issues.

Change the default settings

Postby mathias1980 » 2009-03-16 10:57


I use UVNC 1.05 with the Java-based viewer. Everything works fine but I have one question left. How can I change the default settings??

For example in the options menu the "Restricted Colors" are always set to 64 and I want to have "Full" as default. Is there a config file to change these settings or where can I do that??

Thanks for your help :)
Posts: 1
Joined: 2009-03-16 10:39

Re: Change the default settings

Postby Geving » 2009-03-22 19:27

I would allso like to know if this is possible..
I'd allso like to be able to remove the buttons on top.

I've looked at the source, and removing the buttons can be done by using "<PARAM NAME = 'Show Controls' VALUE='No'>" in the HTML code..
Last edited by Geving on 2009-03-23 15:47, edited 1 time in total.
Posts: 1
Joined: 2009-03-22 19:22

Re: Change the default settings

Postby pedig » 2009-04-16 16:28


the default settings can be changed by passing parameters with the calling of JavaViewer.

Code: Select all
java.exe -cp "your path to VncViewer" VncViewer HOST "host_url" PORT 5900 "Show Controls" No "View only" Yes "JPEG image quality" "JPEG off" "Restricted colors" "Full"

All possible parameters and their values can be found in the source code, and

Open New Window
Show Controls
Show Offline Desktop
Defer screen updates
Defer cursor updates
Defer update requests
Compression level
JPEG image quality
Cursor shape updates
Use CopyRect
Restricted colors
Mouse buttons 2 and 3
View only
Share desktop

What I don't know:
How do I have to call the JavaViewer in a Browser? I would type
but in this case I get a generated HTML-file with the default-parameters in it. How can I change the default-settings of this HTML-file?
Posts: 3
Joined: 2009-04-16 13:22
Location: Switzerland - Glarus

Re: Change the default settings

Postby pedig » 2009-04-17 13:19

The first way I found to start the JavaViewer in a browser is to call the following html-file:
Code: Select all
      <applet code="VncViewer.class" width="800" height="632">
         <param name="archive" value="VncViewer.jar">
         <param name="host" value="hostUrl">
         <param name="port" value="5900">
         <param name="Open New Window" value="Yes">
         <param name="Show Controls" value="No">
         <param name="View only" value="Yes">
         <param name="JPEG image quality" value="JPEG off">
         <param name="Restricted colors" value="Full">
This call I make from the client-pc and I must have also the file vncviewer.class on the same pc (in this case actually in the same directory as the html-file).
Posts: 3
Joined: 2009-04-16 13:22
Location: Switzerland - Glarus

Re: Change the default settings

Postby wristbandsnow » 2009-06-13 09:04

Java in UBUNTU:

Choosing the default Java to use:

Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

* Open a Terminal window

Run sudo update-java-alternatives -l to see the current configuration and possibilities.

Run sudo update-java-alternatives -s XXXX to set the XXX java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

Run java -version to ensure that the correct version is being called.

You can also use the following command to interactively make the change;

* Open a Terminal window

Run sudo update-alternatives --config java
* Follow the onscreen prompt
Posts: 2
Joined: 2009-06-13 07:28

Return to JavaViewer

Who is online

Users browsing this forum: No registered users and 1 guest