View Java's JRE path under Windows

Source: Internet
Author: User
Java-showversion
echo
%java_home%
Path

This method confirms the current Java.exe version, but does not determine the specific path to the output JRE.

The path to the java_home is not necessarily the path of the currently running Java. In the path list, the path of the JRE in all paths is preceded by the one that is executed with that JRE.

Java-verbose

This method provides a more accurate way to output the Java path (the entire path of the jar package that the Java runtime relies on is output).

[Loaded Java.lang.Shutdown from C:\Program Files\java\jre1.8.0_162\lib\rt.jar]
[Loaded Java.lang.shutdown$lock from C:\Program Files\java\jre1.8.0_162\lib\rt.jar]

View Java's JRE path under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.