• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java -version

 
Uma Reddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good morning, I am new to Java and currently learning the basics. I have more than 1 JDK version installed on my PC. When I type java -version at the command prompt, how does the system know which version to select.

Thanks in advance,
Uma
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on which java\bin path is mapped in the "path" properties.
 
Nicola Garofalo
Ranch Hand
Posts: 308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can look at the platform installation notes

http://java.sun.com/javase/6/webnotes/install/index.html
 
Jan Cumps
Bartender
Posts: 2599
12
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Uma.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic