Java Over HTTP script shows error "Error: Failed to find javac.exe" during reply.

  • KM00257012
  • 24-Dec-2012
  • 28-Jul-2016

Summary

During reply script is not able to find the javac.exe. Make sure the customer have the JDK installed.

Error

Full Error message:

"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 reason of this problem is that the javac.exe file is missing from the machine where the script is running.

Fix

In order to fix this problem during execution make sure of the following:

Go to the machine JDK installation folder (located under Program Files) and do a search for javac.exe if the file is missing you will have to reinstall the JDK.

If you don't find the  JDK folder you will have to install it even if you have the JRE the problem will continue.