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 8480421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:17:26+00:00 2026-06-10T19:17:26+00:00

When we run a java program if the JRE is not installed, it does

  • 0

When we run a java program if the JRE is not installed, it does not work.
I found out that most of the famous applications like Google chrome browser has been written in C++. So how does windows run a program like that without any run time environment for C++?What is really happening at the installation?

  • 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-10T19:17:27+00:00Added an answer on June 10, 2026 at 7:17 pm

    So how does windows run a program like that without any run time
    environment for C++?

    The premise of the question is actually not true. At least on Windows, there is in fact a runtime environment for C++. One component of this runtime (probably the most important one) is called the C Runtime, or the CRT. 🙂

    Typically before your program even enters the main() function, the CRT performs a bunch of initialization routines, and when you return from the main() function it cleans up after itself. The whole point of this dance is to provide standard functionality that virtually all C and C++ programs require.

    If you’ve ever run across an error involving a missing msvcrt.dll or anything like that (e.g. msvcr110.dll for newer programs) when starting a Windows program, the lack of the CRT is what the program is complaining about. The msvcrt.dll is the file that implements the CRT. It stands for “Microsoft Visual C Runtime”.

    Obviously, msvcrt.dll and its relatives ship with the Windows operating system, which is why you don’t typically run into problems with a missing runtime environment unlike the JRE, which must be installed by either the user or by the manufacturer of the computer.

    However, Windows C++ applications are compiled to use a specific version of the MSVCRT, and if you have the wrong version of the MSVCRT, then the operating system will complain the same way as though it was missing.* What installers typically do is to check that the OS has the correct version, and if it doesn’t it copies it somewhere on your computer from its own installation files.

    The MSVCRT is however not a necessary nor sufficient condition for all Windows programs to work. It’s entirely possible to write a program that is not dependent on the MSVCRT, and also entirely possible that a Windows program will have dependencies other than the MSVCRT. Virtually all nontrivial Windows programs will depend on the MSVCRT and other operating system components. The installer of the program would check for these as well.

    There are some important differences between the JRE and the MSVCRT. One big difference is that the JRE implements a virtual machine environment for Java applications (that’s how it achieves it’s “cross-platform” capabilities) which may involve just-in-time compilation, etc. while the MSVCRT only provides standard functions and does nothing about the assembly code of your C++ programs.


    *This is not strictly correct as C++ applications can statically link to the MSVCRT, which doesn’t depend on the DLL. However, most Windows C++ applications dynamically link to it, in which case the correct DLL is required.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do you run a java program that requires input from a file in
I had a Java program that I run thousand times based on a loop
I'm currently writing a java program that requires some Data to run. The data
I have a java program that performs 5 different tasks. When I run the
Im am making an Java SWT program that is required to run on both
A java program that does frequent swing/awt painting animation (but nothing more advanced than
I wrote a program in Java 6.0, but it turns out that some of
I get the following error when I run a java program: Exception in thread
I want to run a a java program on a remote computer 24 x
I am trying to run cut inside a java program, but I am lost

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.