Getting "Error: Failed to find java.exe" while executing Java User Protocol script

406 views
Skip to first unread message

Sagar Mamidwar

unread,
Dec 19, 2013, 6:55:43 PM12/19/13
to LR-Loa...@googlegroups.com
Hi,
I am trying to run a Java User protocol script in Vugen 11.5. I am getting following message:

Error: Failed to find java.exe.
Please add the <JDK>\bin to the path and try again.
Warning: Extension java_int.dll reports error -1 on call to function ExtPerProcessInitialize
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.


Please find system details below:
OS: Windows Server 2008 R2 Standard SP1 (64-bit)
JDK: 1.6.0_33
Vugen: 11.51
Environment variable "PATH" already has jdk entry: C:\Program Files\Java\jdk1.6.0_33\bin

I have also tried giving this path in Run-Time Settings: Java VM - Use specified JDK: C:\Program Files\Java\jdk1.6.0_33\bin. Still no success.

The same script works fine on one of the other machines where i have Vugen 9.52.

Could anyone please help?


Sagar Mamidwar

unread,
Dec 24, 2013, 5:36:39 PM12/24/13
to LR-Loa...@googlegroups.com
Hi,
does anyone have any info around this? If yes, could you please provide the same to me. it would really help me a lot..


--
You received this message because you are subscribed to the Google Groups "LoadRunner" group.
To unsubscribe from this group and stop receiving emails from it, send an email to LR-LoadRunne...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Abhishek Banginwar

unread,
Dec 25, 2013, 12:45:25 AM12/25/13
to LR-Loa...@googlegroups.com

Have you added jdk/jre path in run time setting?

-A

Rajiv kumar

unread,
Dec 25, 2013, 10:50:58 PM12/25/13
to lr-loadrunner
Add the Java path in loadrunner classpath or set it manually prior to run the script. it should work fine..

Sathish Komatireddy

unread,
Dec 25, 2013, 9:34:46 PM12/25/13
to LR-Loa...@googlegroups.com

Its purely jdk class path setting problem.  I recently come across this issue. 

I could able to set up this for the machine of same configuration (yours). But failed to setup in other box, might be the issue with the machine itself.

Thanks,
Sathish.

Sagar Mamidwar

unread,
Dec 28, 2013, 10:13:17 PM12/28/13
to LR-Loa...@googlegroups.com
yes, I have manually set the jdk path in run time settings. also, added jdk path in PATH environmental variable, still no success.

Sagar Mamidwar

unread,
Dec 31, 2013, 10:08:45 AM12/31/13
to LR-Loa...@googlegroups.com
thanks all.. I have found the solution.

even though our OS is 64-bit, we should install 32-bit jdk to test 32-bit application. VuGen recording is not supported on 64-bit applications. However 32-bit applications can be recorded on 64-bit operating systems.

I have uninstalled 64-bit jdk and installed 32-bit one on my machine and it worked fine.

HP Knowledge Document: http://support.openview.hp.com/selfsolve/document/KM1333030?searchIdentifier=&resultType=document&documentURL=KM1333030

amit gupta

unread,
Dec 31, 2013, 11:39:51 AM12/31/13
to LR-Loa...@googlegroups.com
I believe this is nothing to do with 64 bit application under test. LR works with 32 bit JDK, hence the LR machine should have 32 bit JRE. So if you are using 64 bit OS for LR install 32 bit JDK and put in the class path. Vugen can record application developed for 64 bit Java.
 
The other thing which you should make sure that your application working with Java 7  and application using Java web start then move to LR 11.52 which has included the support of Java 7.

Gurunath Reddy Gali

unread,
Nov 27, 2014, 10:32:31 AM11/27/14
to LR-Loa...@googlegroups.com
Thanks for the solution. I too facing the similar issue. Will try by installing 32 bit JDK

Mital Majmundar

unread,
Nov 28, 2014, 3:51:37 PM11/28/14
to LR-Loa...@googlegroups.com

Add the option JAVA_OPTIONS in env variables. Once you do that restart the machine. You should be good then. Let me knw hw it goes I am currently working on such application.

Dilip Janganure

unread,
Feb 20, 2015, 6:52:33 PM2/20/15
to LR-Loa...@googlegroups.com
Thanks for the Solutions... I spent 1 day to debug this, in command prompt java was working but in VUGen was not. I tried various options. This helped.

-Dilip
Reply all
Reply to author
Forward
0 new messages