What java version my computer has?

  • Thread starter Thread starter jerome
  • Start date Start date
"jerome" ([email protected]) said in
Hi
How do I find what java version my computer has running?
Where do I look? Thanks

In a DOS shell:

For Sun JVM, run: java -version

For Microsoft JVM, run: jview

If you don't which you have, just run both commands.
 
"jerome" ([email protected]) said:
*Vanguard* said:
In a DOS shell:

For Sun JVM, run: java -version

For Microsoft JVM, run: jview

If you don't which you have, just run both commands.

Or, you can just go to start\control panel\add-remove, and check it
there - it will tell you the version.

And you know, I found two of them installed there - when I did an
upgrade at some point in the past, it never got rid of the old one. If
happens then remove the oldest version, or remove them both, after
first having downloaded and saved the newest version somewhere to
disk, and install it after that..
 
"Big Mac" said in news:[email protected]:
Or, you can just go to start\control panel\add-remove, and check it
there - it will tell you the version.

And you know, I found two of them installed there - when I did an
upgrade at some point in the past, it never got rid of the old one. If
happens then remove the oldest version, or remove them both, after
first having downloaded and saved the newest version somewhere to
disk, and install it after that..

Add/Remove Programs will only list the Sun (or non-Microsoft) versions
of Java that you have installed. It does not list Microsoft's JVM.

The install of a later version of Sun's JVM does not uninstall the
earlier version, especially if you install the JDK instead of the JRE.
That is because developers often want multiple versions installed to
test their Java applications against each (so they know their product
will work with their customers using those different versions). Most
Java development software (all of them that I've seen) let you select
which JDK to use, or you can use an environment variable to select.
Sometimes I really, really miss the whence command available on Unix to
know exactly which java.exe or javac.exe file that I end up using if a
full path isn't specified. If you only want the latest version
installed, you must uninstall the other versions.
 
Back
Top