1

My mac has everything installed using brew. I also had jenv installed. I got frustrated with

"jvisualvm The operation couldn’t be completed. Unable to locate a Java Runtime that supports jvisualvm",

decided to uninstall everything. Uninstalled java, uninstalled jenv.

Now even ls command prints

"jenv:11: command not found: jenv".

How to get rid of this message?
I did remove jenv lines from ~/.zshrc and ~/.bash_profile

blackraven
  • 5,284
  • 7
  • 19
  • 45
  • 2
    Have you restarted the shell session? Also, what if you try to search for jenv in your home dir like – Vitaly Chura Oct 05 '22 at 17:27
  • restarting shell session worked. Can you suggest proper way to install openjdk8 on Mac? With brew install, jvisualvm didn't work. "jvisualvm The operation couldn’t be completed. Unable to locate a Java Runtime that supports jvisualvm" – bhosleviraj Oct 06 '22 at 08:51
  • 1
    Use https://sdkman.io best one out there for managing Java versions and others – Jorge Campos Oct 09 '22 at 04:33
  • It has same issues. Jvisualvm throws same error. – bhosleviraj Oct 10 '22 at 05:50
  • 1
    Have you checked the troubleshoot guide of VisualVM? There plenty of things to check there related to it not working. Here: https://visualvm.github.io/documentation.html – Jorge Campos Oct 11 '22 at 17:15
  • Well, I couldn't run the jvisualvm that comes with jdk but separate installation of visualvm works fine. Thanks @JorgeCampos – bhosleviraj Oct 22 '22 at 13:11

0 Answers0