If I have tow versions of java installed, how I can run java application choosing one of them?
lets say I have 1.5 and 1.6 and I want to use 1.6 not 1.5.
A bit late, but here goes for posterity:
run with any 1.5 vm: java -version:1.5*
run with 1.6_0_10 or later vm: java -version:1.6_0_10+
run with 1.6_0_10 or later BUT only 1.6 versions (exclude 1.7* for example): java -version:"1.6_0_10+&1.6*"
You can specifies the jdk install jre dir path to run java application, For example:
How do I know the location of installed Java, usually it's on C. what if some one installed it on D:
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.