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

  • SEARCH
  • Home
  • 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 8115251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T03:24:31+00:00 2026-06-06T03:24:31+00:00

I have just installed Java JDK 6u33 in Windows XP. Even though I didn’t

  • 0

I have just installed Java JDK 6u33 in Windows XP. Even though I didn’t set the PATH environment variable, I am able to run java -version in command prompt.

When I run this command for %i in (java.exe) do @echo. %~$PATH:i, I get this output:
C:\WINDOWS\system32\java.exe

When I check my PC, I found that there are 2 java.exe:
1. C:\Program Files\Java\jdk1.6.0_33\bin\java.exe
2. C:\WINDOWS\system32\java.exe

May I know what is the difference between system32\java.exe and Program Files\Java\jdk1.6.0_33\bin\java.exe? Why only system32\java.exe is shown when I run for %i in (java.exe) do @echo. %~$PATH:i?

Do I still need to add C:\Program Files\Java\jdk1.6.0_33\bin\ to my PATH environment variable?

  • 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-06T03:24:33+00:00Added an answer on June 6, 2026 at 3:24 am

    Setting the PATHvariable is just so that you can get access to javac and the other programs and tools in the jdk bin folder.

    The java.exe in \windows\system32\ is provided so that not everyone needs to set a PATH variable just to run a java program (from the command line) and selects a version (the last one installed it seems) of the installed java virtual machines (JVM) if there are more than one (publicly) installed.

    See this link for further info:

    http://mindprod.com/jgloss/javaexe.html#MULTIPLES

    Quote:

    To complicate things further the java.exe in system32 is just a dummy.
    It looks in the registry and then decides which real java.exe to use.
    The last JVM installed gets to be the one used, even if it is older.
    To switch JVM s, you must normally reinstall the one you want.

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

Sidebar

Related Questions

I have just installed JDK on Windows Vista. After that I set proper values
I have just installed that latest stable release of TortoiseSVN on Windows Server 2003
I have just installed SQL Server 2008 including Reporting Services on Windows Server 2003.
I just about to learn Java programming. I already have jdk on my computer.
I have just installed PMD to analyze my Java project. Really nice tool, highly
I have just installed the latest version of Java Development Kit from Sun Technologies.
I have Eclipse Helios SR1 installed on Windows XP. I am writing/debugging Java code
I have just installed Orbeon 3.9 CE on a WebSphere WAS 7.0 environment all
I have Subclipse installed for Java and just installed TortoiseSVN for #develop, as suggested
I have just installed new Maven into my new Fedora 17 64bit. Details: java

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.