faqts : Computers : Programming : Languages : Java

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 3 people (67%) answered Yes
Recently 2 of 3 people (67%) answered Yes

Entry

Java: Version: Get: How to see the version of Java?

Oct 10th, 2004 07:47
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 10 October 2004 - 02:26 am --------------------

Java: Version: Get: How to see the version of Java?

---

Steps: Overview:

 1. -Open an MSDOS window

 2. -Type on the command line the command

      java.exe -version

 3. -You should see a response similar to the following:

+------------------------------------------------------------------+
|java version "1.3.1"                                              |
|Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)|
|Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)          |
+------------------------------------------------------------------+

or

+---------------------------------------------------------------------+
|java version "1.4.2_01"                                              |
|Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_01-b06)|
|Java HotSpot(TM) Client VM (build 1.4.2_01-b06, mixed mode)          |
+---------------------------------------------------------------------+

---
---

Note:

If you get errors like 'unknown command', then make sure e.g. that the
program java.exe is in your PATH, or type the full path to that program
(e.g. c:\java\bin\java.exe). If you need to find it do e.g. a file
search for 'java.exe'.

----------------------------------------------------------------------