Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version of OpenJDK is not supported. Please use the default-jdk. #558

Closed
thmasker opened this issue Feb 19, 2024 · 12 comments
Closed

Version of OpenJDK is not supported. Please use the default-jdk. #558

thmasker opened this issue Feb 19, 2024 · 12 comments
Labels

Comments

@thmasker
Copy link

Trying to open VisualVM outputs following error:

VisualVM log
Version of OpenJDK is not supported. Please use the default-jdk.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 22.04.3 LTS

Additional context
java -version outputs:

openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (build 17.0.9+9-Ubuntu-122.04)
OpenJDK 64-Bit Server VM (build 17.0.9+9-Ubuntu-122.04, mixed mode, sharing)

and $JAVA_HOME is /usr/lib/jvm/java-17-openjdk-amd64

@thmasker thmasker added the bug label Feb 19, 2024
@thurka
Copy link
Member

thurka commented Feb 19, 2024

What version of VisualVM do you use? How you 'open' the VisualVM? Can you please post the whole output from terminal?

@thmasker
Copy link
Author

I write visualvm in the terminal, and the whole output is exactly what I put:
Version of OpenJDK is not supported. Please use the default-jdk.

I've tested it with several versions of VisualVM, including 2.06, and the latest: 2.1.7

@thurka
Copy link
Member

thurka commented Feb 19, 2024

Can you try visualvm --jdkhome /usr/lib/jvm/java-17-openjdk-amd64?

@thmasker
Copy link
Author

I've also tried that. Same error is obtained

@thurka
Copy link
Member

thurka commented Feb 19, 2024

Can you try to use absolute path for visualvm?

@thmasker
Copy link
Author

you mean like /usr/bin/visualvm --jdkhome /usr/lib/jvm/java-17-openjdk-amd64? Tried it with and without --jdkhome. Same output error

@thurka
Copy link
Member

thurka commented Feb 19, 2024

Hmm, this is strange. That error is not part of VisualVM sources. Where did you get VisualVM from? Please try the following:

  1. download VisualVM 2.1.7 from https://visualvm.github.io
  2. unzip it to /tmp
  3. run it with /tmp/visualvm_217/bin/visualvm --jdkhome /usr/lib/jvm/java-17-openjdk-amd64

@thmasker
Copy link
Author

Well I'm seeing exactly this error message on /usr/bin/visualvm line 87... Anyway the steps you just gave me worked

@thurka
Copy link
Member

thurka commented Feb 19, 2024

Well I'm seeing exactly this error message on /usr/bin/visualvm line 87...

.. but this code does not come from visualvm sources. Where did you get the VisualVM from?

Anyway the steps you just gave me worked.

OK.

@thmasker
Copy link
Author

thmasker commented Feb 19, 2024

I installed it via apt sudo apt-get install visualvm was literally the command I used

@thurka
Copy link
Member

thurka commented Feb 19, 2024

I see. Unfortunately we cannot control what is installed by apt-get install visualvm. This is probably not the original visualvm version and it looks like the visualvm launcher script was modified. If in doubt, please use version from https://visualvm.github.io/
Thanks.

@thmasker
Copy link
Author

Ok, then. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants