This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java 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 » Java » Beginning Java
Bookmark "java -version" Watch "java -version" New topic

java -version

Uma Reddy

Joined: Apr 16, 2010
Posts: 4
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,
Aneesh Vijendran
Ranch Hand

Joined: Jun 29, 2008
Posts: 125
It depends on which java\bin path is mapped in the "path" properties.

Nicola Garofalo
Ranch Hand

Joined: Apr 10, 2010
Posts: 308
You can look at the platform installation notes

Jan Cumps

Joined: Dec 20, 2006
Posts: 2543

Welcome to JavaRanch, Uma.

OCUP UML fundamental and ITIL foundation
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: java -version
It's not a secret anymore!