aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes java version Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "java version" Watch "java version" New topic
Author

java version

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
Stupid question...
I have several versions of the sdk installed (one came with JBuilder). How can I tell which one is actually being used?
ms


ms<br />SCJP, SCJD
Jason Ford
Ranch Hand

Joined: Aug 02, 2001
Posts: 54
java -version


SCJP, SCWCD
Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
followup stupid question...
it says :
C:\eclipse\workspace\suncertify>java -version
java version "1.4.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)
how can I tell for certain that this is not a beta version. I'm fairly sure that when I downloaded I didn't get a beta, but I wasn't doing certifications then so I'm not certain.
ms
Jason Ford
Ranch Hand

Joined: Aug 02, 2001
Posts: 54
These seem like perfectly reasonable questions to me.
It looks like your version is ok. See Sun's naming conventions for more information.
Beta versions look like this:
The following output indicates a beta, maintenance release having a build identifier of 09.
java version "1.3.1-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b09)
Java HotSpot(TM) Client VM (build 1.3.1_05-ea-b01, mixed mode)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java version