This functionality is supported only if you are using the Classic Agent.
You should not simply add the .jar file containing the Java class referenced in the InvokeJava() call to the directory containing the .jar files used by your application. InvokeJava() will be able to load your Java class only if it can be loaded by one of the following class loaders. If you receive a Class Not Loaded error when calling InvokeJava():