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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:22:12+00:00 2026-06-13T07:22:12+00:00

I am confused here: If I run java from cmd then the command runs

  • 0

I am confused here:
If I run java from cmd then the command runs succesfully.
But I have neither set JAVA_HOME nor %JRE_HOME% nor added java/jre installation directory in my PATH.
So when I do

echo %JAVA_HOME%

No JAVA_HOME is displayed (expected since I have not set it)

If I do:

echo %JRE_HOME%`

No JRE_HOME is displayed (expected since I have not set it)

and when I do

echo %PATH%

no directory in the PATH points to a java installation. Expected since I have not modified PATH to add java.

PATH is:

C:\Program Files\Common Files\Microsoft Shared\Windows Live;  
C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;  
C:\Program Files (x86)\AMD APP\bin\x86_64;  
C:\Program Files (x86)\AMD APP\bin\x86;
C:\Windows\system32;C:\Windows;  
C:\Windows\System32\Wbem;  
C:\Windows\System32\WindowsPowerShell\v1.0\;  
C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;  
C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;   
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;  
C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;  
C:\Program Files (x86)\IDM Computer Solutions\UltraEdit-32;  
C:\Program Files (x86)\Windows Live\Shared  

So why don’t I get Bad Command on running java?
enter image description here

  • 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-13T07:22:13+00:00Added an answer on June 13, 2026 at 7:22 am

    According to this answer to “Is there an equivalent of ‘which’ on windows?”, recent versions of Windows include a ‘where’ command.

    So you could try: where java.exe

    I can’t check right now, but I have a feeling Windows had a java.exe somewhere under C:\Windows\System32\…

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

Sidebar

Related Questions

Bit confused here, I have an on-demand instance but do I get charged even
I am trying to run the following code but confused with what's happening here:
Confused here... I have two dates which I NSLog to console and get: dates
Totally confused here. I have a PARENT UIViewController that needs to pass an NSMutableArray
I am confused here, even though raw strings convert every \ to \\ but
Just a little confused here... I have a function in postgres, and when I'm
I am new to LINQ, so I am pretty confused here. I have a
I am confused with scenario which I have encountered with cross thread access. Here
I have a Word macro that needs to run using Java. So I use
Hello have only a few days with Java and android here. I am a

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.