Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8597229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T00:52:01+00:00 2026-06-12T00:52:01+00:00

On a Windows system, assuming you have multiple JREs installed there and assuming you

  • 0

On a Windows system, assuming you have multiple JREs installed there and assuming you launch java by explicitly specifying the absolute path of java.exe, and assuming you are not relying on any environment variables such as JAVA_HOME will java.exe pick up its runtime from the directory tree under which it is located or will it rely on some registry setting that the “official” java installer created?

In other words, what is the algorithm that Java uses to find its runtime? You do not have to specify the runtime on the classpath and if you attempt to output the contents of System.getProperty(“java.class.path”), the runtime is not shown.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T00:52:02+00:00Added an answer on June 12, 2026 at 12:52 am

    If you invoke C:\Some\Path\Java\jre\bin\java.exe, then it will use C:\Some\Path\Java\jre\lib\rt.jar. It basically uses ..\lib\rt.jar. It doesn’t do any fancy resolution or registry lookups, just a relative path reference.

    If you need to find that reference from within a Java application, you can use:

    String javaPath = System.getProperty("java.home");
    File rtJar = new File(javaPath, "lib/rt.jar");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Operating system: Windows XP SP3 (Unfortunately) I have downloaded and installed the latest version
What underlying rendering system does the Qt GUI toolkit use on Windows? (I'm assuming
I have seen that Windows system use temporary files to increase the performance of
I have a simple batch file sitting in my windows system - @echo off
I have a question about getting DLL's directory on Windows system. The situation is
I have an updated cygwin-full install ,mingw ,codeblocks on a windows system. i have
I have a little application, let's call it launch.exe. It is a c++ appl.
I'm a beginner in Perl. I have a Windows batch script which contains multiple
Possible Duplicate: Writing a Windows system tray application with .NET I want to develop
I want to monitor the windows system tray for icon text changes. How can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.