Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdk version

 
Shafian Kisna
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,

Could I know how can I check which version of jdk is my system running on?
I have 1.5 and 1.4.2(previously running on my system).

Kindly assist.

Thanks & Best Regards
SK
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java -version
will tell you which version is in the PATH.
 
Shafian Kisna
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have set the version in the classpath but it dun seem to be updating.....
could i know if there is a way to check in the ms dos prompt??

thanks!
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was referring to the PATH, not the CLASSPATH.
Open a DOS prompt, and type : java -version
 
Shafian Kisna
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks I got it...

Best Regards
SK
 
Subhajit Mitra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this...

c:\> SET PATH=C:\<java install dir>\bin;%PATH%
c:\> java -version

put double quote "C:\<java install dir>\bin" if install dir has blank space (eg: PROGRAM FILES)
if u have multiple java, try...

c:\> SET PATH=C:\<java1.5 install dir>\bin;C:\<java1.4 install dir>\bin;%PATH%
c:\> java -version

although it will only show java1.5 version as it is first in the PATH

to check containt of PATH Environment variable use

c:\> echo %PATH%
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic