Anyone has experience with configuring jenv and visualvm? I'm on linux with bash if it's relevant
The question is how you use jenv
to set proper JDK version for visualvm?
new releases of visualVM require --jdkhome
Ended up wrapping it in a script
${HOME}/.local/visualvm/latest/bin/visualvm --jdkhome ${JAVA_HOME} "$@"
Then run it with
jenv exec visualvm-wrap
Interesting. I had a similar problem with Java Mission Control - I just ended up hardcoding the proper java version in their startup script.
jenv might need some updates with regards to hooks
It wasn't properly documented but you can use
visualvm_jdkhome=$JAVA_HOME visualvm
Makes for a simple method of adding a visualvm plugin to jenv. JMC probably has something similar