Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry

  • KM00236586
  • 13-Dec-2012
  • 27-Jan-2014

Summary

LoadRunner 9.5, 11.0, 11.50 Unable to find javac.exe during script replay - Java Over HTTP script (this applies to the other Java protocols)

Error

Script was recorded fine but during execution the reply log shows the error message below:

"Error: Failed to find javac.exe Java Compiler in Path and JDK installation folder in registry......Error: Failed to compile the Actions.java file......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."

Cause

The cause of the error is related with javac.exe that is missing or not installed under the machine.

Fix

Make sure the machine where vugen is running have Java JDK installed this is because the javac.exe is store inside this folder and missing this will cause the error message.
 
If the problem persist go to the Vugen Run-Time Settings and manually select the JDK under Java VM in case you have more JDK under the same machine.