Unable to load OpenSpan.Translators.Java.Agent

I am trying to interrogate a java application, I set Arguments, Path and WorkingDirectory on an Windows adapter.

When I start interrogation I am getting the error:

JVMJ9VM011W Unable to load OpenSpan.Translators.Java.Agent: The specified module could not be found.

Error: Could not create the Jaa Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Then, the interogation stop.

How can I fix this?

@JasonR23 It is possible that your Path and Arguments properties are not matching up with how your application is currently launched. I would examine the current shortcut and make sure that the Path points to the exe or bat file and that the Arguments property is exactly the same as the current shortcut. You can use a tool like Process Explorer to see these arguments from a running process if you cannot get them from your shortcut.

If they are identical, then I would try disabling the Java factory in your adapter to see if that gets you past the error. If it does (or even if it does not), then that information will be helpful in opening a support case; which is my suggestion if your path and arguments are correct. If you do open a support case, please list the INC number on this post.

@ThomasSasnett Thanks.

I did resolve the issue.

The Arguments and Path are the same to the shortcut of the application but the jre (javaw.exe) that the application is using is a standalone, so the jre path is not set on the Environment Variables as JAVA_HOME. Pega Studio cannot identifly the application is a Java application to inject the OpenSpan.Translators.Java.Agent if the Path is not on JAVA_HOME.