|How do I solve ERROR: SamplerManager::_addSamplers Failed to load JVMManager because of a component version mismatch? error?
The component version mismatch occurs when the version of the libraries are not compatible with the Netprobe.
The error occurs when only certain libraries are swapped in, as opposed to swapping in the whole Netprobe package. Libraries can differ a lot from version to version; the rule of thumb is to swap all the Netprobe libraries included the Netprobe tar file/package.
It is possible to have these libraries installed in a folder other than where the Netprobe is installed or even have the execution of the start script in a different directory. You can set GENEOS_JARS and GENEOS_LIBS environment variable. This is an extract from the manual:
The Netprobe checks for these environment variables and uses their values if they are specified to find the jar files and shared library files. Otherwise, the default behavior of the Netprobe is to look into its working directory.
Also verify that the paths are set correctly:
export JAVA_HOME=<Java directory>/jre (ex: /opt/lib/java/oracle/jdk/jre)