cancel
Showing results for 
Search instead for 
Did you mean: 

Instructions on how to configure ProperJavaRDP

geff-at-pier64-c
Occasional Contributor

Re: Instructions on how to configure ProperJavaRDP

Interesting. The reason I expected WIDTH would work is because of the text to the right of the html box where you enable java access:

Following variables can be used in the HTML that will be replaced based on the bookmark values:

<<HOST>>

<<PORT>>

<<SERVERPORT>>

<<CLIENTPORT>>

<<HEIGHT>>

<<WIDTH>>

So I must not understand. Smiley Sad Can you offer a hand?

Geff

muttbarker_
Valued Contributor

Re: Instructions on how to configure ProperJavaRDP

Thanks for the reply - I do use the <PASSWORD> variable in a auotpolicy for Remote Single Sign On using POST and it works find. Tried to wade through some packet captures but to much stuff.

Will just open a JTAC issue after the 4th of July and post what I learn from them.

Thanks for all your help.

Tigeli_
Occasional Contributor

Re: Instructions on how to configure ProperJavaRDP

There is also: JavaRDP provided by Elusiva which seems to almost the same as properjavardp but few adjustments like tabulator is working, you cand send ctrl-alt-del from the menu.

However you will have to modify the configuration little bit:

--cut--

<html>
<head>
<title>ElusivaRDP Applet</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<!--
Notes:
1) << CODEBASE >> is a system value that will get replaced at the time the applet is launched. Please do not modify this value.
2) Please modify the remaining values as needed.
3) Please make sure all attribute names/values are enclosed in double quotes.
-->
<body>
<applet code="com.elusiva.rdp.applet.RdpApplet.class"
codebase="<< CODEBASE >>"
archive="JavaRDP14-1.1.jar"
width="640" height="480"
name="ElusivaRDP" align="top">
<param name="code" value="com.elusiva.rdp.applet.RdpApplet.class">
<param name="codebase" value="<< CODEBASE >>">
<param name="archive" value="JavaRDP14-1.1.jar">
<param name="cabbase" value="">
<param name="name" value="ElusivaRDP">
<param name="width" value="640">
<param name="height" value="480">
<param name="align" value="top">
<!--
Please specify additional params here after the comment.
<param name="paramname" value="paramvalue">
-->
<param name="Server" value="<<HOST>>">
<param name="Port" value="<<PORT>>">
</applet>
</body>
</html>

--cut--

Tigeli_
Occasional Contributor

Re: Instructions on how to configure ProperJavaRDP

Attached also the jar-package if they ever remove it from their webpage.
Message Edited by Tigeli on 09-02-2009 11:28 PM
Tigeli_
Occasional Contributor

Re: Instructions on how to configure ProperJavaRDP

Also noticed that neither Properjavardp or Java rdp provided by Elusia will work with Windows 2008 session resuming, it just disconnects after logon. Windows 2003 is working fine.
MattK_
Not applicable

Re: Instructions on how to configure ProperJavaRDP

ProperJavaRDP's options are listed in the source code under /src/net/propero/rdp/applet/RdpApplet.java

Here are all the params listed in the code that I can find:

argLine += genParam("-m","keymap");
argLine += " " + genParam("-u","username");
argLine += " " + genParam("-p","password");
argLine += " " + genParam("-n","hostname");
argLine += " " + genParam("-t","port");
argLine += " " + genParam("-l","debug_level");
argLine += " " + genParam("-s","shell");
argLine += " " + genParam("-t","title");
argLine += " " + genParam("-c","command");
argLine += " " + genParam("-d","domain");
argLine += " " + genParam("-o","bpp");
argLine += " " + genParam("-g","geometry");
argLine += " " + genParam("-s","shell");
argLine += " " + genParam("","server");

You can see that height and width are not listed, which explains why they don't work, but geometry does. I believe you could add a new line here for full screen access,something like this:

argLine += " " + genParam("-f","fullscreen");

Then you would probably need to change the behavior of genParam to return the -f flag properly as it currently will skip it if the parameter string is null.

Any Java developers out there want to recompile with these changes?

Moa_
New Contributor

Re: Instructions on how to configure ProperJavaRDP

I tried ProperJavaRDP and though the applet runs (I downloaded all the necessary jar files), the applet is stuck

The message I have is "Launching properJavaRDP session... Connecting to xxxxx"

And nothing happens... I tried some server to which I can connect with Windows Remote Desktop without any issue

The HTML code I am running is the following:

<html>
<head>
<title>ProperJavaRDP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<h2>You may close this window when you are finished...</h2>
<applet code="net.propero.rdp.applet.RdpApplet.class"
archive="properJavaRDP-1.1.jar,log4j-java1.1.jar,properJavaRDP11-1.1.jar,properJavaRDP12-1.1.jar,properJavaRDP13-1.1.jar,properJavaRDP14-1.1.jar,java-getopt-1.0.13.jar"
width="1024" height="768"
name="ProperJavaRDP" align="top">
<param name="code" value="net.propero.rdp.applet.RdpApplet.class">
<param name="archive" value="properJavaRDP-1.1.jar,log4j-java1.1.jar,properJavaRDP11-1.1.jar,properJavaRDP12-1.1.jar,properJavaRDP13-1.1.jar,properJavaRDP14-1.1.jar,java-getopt-1.0.13.jar">
<param name="cabbase" value="">
<param name="name" value="ProperJavaRDP">
<param name="width" value="1024">
<param name="height" value="768">
<param name="geometry" value="1680x1050">
<param name="align" value="top">
<param name="server" value="xxxx">
<param name="port" value="3389">
<param name="username" value="Me">
<param name="password" value="MyPassword">
<param name="domain" value="BEAS">
<param name="bpp" value="24">
</applet>
</body>
</html>

I also tried Elusiva, but the Java code doest run (it actually cannot find the class)

java.lang.ClassNotFoundException: com.elusiva.rdp.applet.RdpApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: D:\Java\<< CODEBASE >>\com\elusiva\rdp\applet\RdpApplet\class.class (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)

Thanks a lot in advance for your help !!

Moa_
New Contributor

Re: Instructions on how to configure ProperJavaRDP

Actually the error I get with ProperJavaRDP is the following

java.lang.IllegalMonitorStateException
at java.lang.Object.notify(Native Method)
at net.propero.rdp.applet.RdpApplet.stop(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
0 [Thread-113] INFO net.propero.rdp.RDPClientChooser - RDPClientChooser
1 [Thread-113] INFO net.propero.rdp.RDPClientChooser - RDPClientChooser.RunNativeRDPClient
Exception in thread "Thread-113" java.security.AccessControlException: access denied (java.util.PropertyPermission gnu.posixly_correct read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at gnu.getopt.Getopt.<init>(Getopt.java:617)
at gnu.getopt.Getopt.<init>(Getopt.java:581)
at net.propero.rdp.Rdesktop.main(Unknown Source)
at net.propero.rdp.applet.RdpThread.run(Unknown Source)

daviss79_
Not applicable

Re: Instructions on how to configure ProperJavaRDP

Did you get properJavaRDP or Elusiva JavaRDP to work? I'm having the same problems as you. From looking around on the web, the java.security.AccessControlException error usually indicates that the app is not signed. I would've thought Elusiva or Propero would've signed the apps but as I'm new to this maybe it's something we're required to do.

I don't mind paying to get the certificate to sign the app with but I don't want to pay all that money only to find it still doesn't work.

Can anyone confirm that they have either of these applets working with JRE 1.6?

muttbarker_
Valued Contributor

Re: Instructions on how to configure ProperJavaRDP

I am running the app w/1.6.0_13 on both XP and OS/X with no issues.