Home > Java > Jenv - same java version but with prefix

Jenv - same java version but with prefix

王林
Release: 2024-02-06 09:15:03
forward
768 people have browsed it
Question content

When I run jenv versions it shows the following options

11.0
  11.0.21
  17.0
  17.0.9
  21.0
  21.0.1
  zulu64-11.0.21
  zulu64-17.0.9
  zulu64-21.0.1
Copy after login
What is the difference between

11.0.21 and zulu64-11.0.21, which one should I choose?

The latter has the prefix zulu64- while the former does not have any prefix.


Correct Answer


This seems to be how Jenv works. It shows the exact version (example 17.0.9) or the major version if you only want to select the major version (example 17.0). Additionally, it will add vendor-prefixed versions to the list (e.g. zulu64-17.0.9). Therefore, a single JDK installation will increase the list by 3 times.

This is all about giving users the flexibility to choose versions in different ways, considering that they may have multiple parallel installations from different vendors/versions.

Reference: //m.sbmmt.com/link/f17a7558451bf1e93b8a8f5549e4938f a>

You may want to check this answer. But the simple answer is that you have a different JDK distribution installed.

The above is the detailed content of Jenv - same java version but with prefix. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template