Java Client - "Authentication failed" when called from external app

Jean-Baptiste Lievremont jean-baptiste.lievremont "at" eads.net
Mon Oct 4 10:37:00 2004


Hi,

I am using RealVNC 4.0 Java Client to connect to an Xvnc tight.1.2.9 
server. Both machines run RedHat 9 with JDK 1.4.2. I would like to embed 
the viewer in a NetBeans module (see http://www.netbeans.org/)

When used as a standalone client, the viewer just works fine. But when I 
launch it from my app (see code below) I obtain an "Authentication 
failed" message.

|    public void launchTool() {
|      
|        String[] params = new String[] {
|            "Server="+getHostName()+":"+getDisplay()
|        };
|      
|        VNCViewer v = new VNCViewer(params);
|
|            v.start();
|    }

I have double checked, the password I type is correct. Proof is that the 
viewer can connect when I use it from command line. So, what can be the 
origin of the problem ?

Thanks and regards
-JBL