Use RDP Application Transparent Login for Java Tool.

Document ID : KB000010238
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

In general Java apps don’t work well. This is because they do not use standard windows forms, so the Learn Tool Control Viewer can’t read them.

Below I will provide an e.g. of a case. This doesn’t mean that all the java tools have same behavior.

Instructions:

This is the current jar that I want to use with Transparent Login:

 

1.Login Jar.jpg

1) Publish the Jar file. In this cases I published the LocalAdmin.jar

https://docops.ca.com/ca-privileged-access-manager/2-7/EN/implementing/provision-your-server/provisioning-devices/set-up-transparent-login/rdp-connections

2) Launch the Learn Mode in the server where you published the jar.

3) Run the jar file (LocalAdmin.jar, in my case). You may notice that the tool is not recognized by the Learn Tool so we have to configure the Transparent Login Config user by clicking on Text input->Keystrokes.

2.Keystrokes.jpg

In my e.g. I need the username and password:

<window id="">
<send id="window" username="true"/>
<send id="window" text="{TAB}"/>
<send id="window" password="true"/>
<send id="window" text="{ENTER}"/>
</window>

4) Now let’s validate and debug the tool with the Learn Tool:

a.       Click on the Debug button and browse the javaw.exe file in the ‘App path:’ field.

3.Debug.jpg

b.      Enter the window Title of the tool. In this case is Login.

c.       Enter the username and password.

d.      Click on Run.

e.      Run the java file (C:\LocalAdmin\LocalAdmin.jar)

f.        You should see that the fields are automatically completing with the user and password provided in the Debug.
And you should see the following information displayed in the command prompt:

4.SuccessCMD.jpg

5) If the result is successful then configure the RDP Application Service with the following command:

“<JAVA PATH>\javaw.exe” – jar <jar file>

Or

“<JAVA PATH>\java.exe” – jar <jar file>

 

In my e.g. I have the following line:
"C:\Program Files (x86)\Java\jre1.8.0_101\bin\javaw.exe" -jar C:\LocalAdmin\LocalAdmin.jar

5.RDPApp.jpg