Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I find out if there is Java Virtual Machine installed on my Windows 7?

share|improve this question

migrated from stackoverflow.com Nov 29 '11 at 15:05

This question came from our site for professional and enthusiast programmers.

    
Type "java" in your command line (cmd) –  Yahor10 Nov 29 '11 at 8:03

5 Answers 5

Run->cmd type java -version.
If you get complaint for unknown command then Java is not installed.

share|improve this answer
9  
What if Java isn't in the path? –  Thomas Jungblut Nov 29 '11 at 8:04
    
I think the installation always puts the bin directory in the path.I mean I have noticed that I always get java -version to respond with the version even if I have not selected java to be in the path during installation –  user65971 Nov 29 '11 at 8:14
    
@Tomas, AFAIK when java is installed a "shortcut/alias" is added in Windows\System32 making it no longer necessary to add java in path –  Kennet Nov 29 '11 at 8:17
    
@Kennet:This is consistent with what I have noticed.I thought it installed bin in the path –  user65971 Nov 29 '11 at 8:19
up vote 2 down vote accepted

Open command prompt and type in the following:

java -version

This should give you the version of the JRE you have installed, something like:

java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

If that fails, you can also check to see if you have any JRE installed. The default location is usually in ${HOME_DIR}\Program Files\Java\, where ${HOME_DIR} is usually C:\

share|improve this answer

@Yahor10 is right. You can first type java and then java -version in command prompt. If this work you will see that JRE is installed and is in your path.

But if it is not in path you will not know it. So, I prefer to open regedit and go to key HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft. If this key does not exist java is not installed. If exists java is typically installed. Previous versions of java created registry entry that showed path where java is installed. I have just checked on my Win7, java1.6-27 and saw that such entry does not exist.

Other way is to got to ControlPanel/Programs and check there.

share|improve this answer

Another way is to check it online.

http://www.inaplex.com/Products/jvmCheck.aspx or

http://javatester.org/version.html

It is working on my system but i am not very sure about its accuracy.

share|improve this answer

Either check java -version on the command line, look in your installed Software listing (control panel), check whether Program Files contains a folder named Java or look if there is an environment variable called JAVA_HOME.

If neither of those is true, there's a high probability that you don't have a JRE or JDK installed, but that's still not certain. AFAIK Windows 7 doesn't contain a JRE per se, so if you have a clean system you most likely don't have a JRE yet.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.