I am creating a JVM diagnostic tool and I am connecting to the JVM using JMX, the problem I am facing is that I need to be able to load tools.jar in a way that is compatible with all unixes and windows, currently I I use scripts from the gradle-generated startup script to load tools.jar into the classpath, but this method seems to depend on too many factors.
Does anyone know a recommended or elegant way to make this jar accessible on the way to classes without looking blindly, where is it?
java jvm
Juan Alberto LΓ³pez Cavallotti Sep 02 '14 at 15:12 2014-09-02 15:12
source share