aspose file tools*
The moose likes Beginning Java and the fly likes Specifiying 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 "Specifiying Java Version" Watch "Specifiying Java Version" New topic
Author

Specifiying Java Version

Tanya Green
Greenhorn

Joined: Mar 15, 2004
Posts: 3
I using Java on a Solaris 2.6 machine. There is currently a version of Java installed on the box, version 1.2. I have recently installed Java 1.3 also compatitible with Solaris 2.6. How do tell the system which version to use?
When I run the command java -version...it points to the 1.2 version. I thought I may need to alter my .cshrc file, but that doesn't seem to work.
Thanks in advance
Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
The system variable PATH needs to be edited to point at the 1.3 version of the SDK.
HTH
Nigel
Tanya Green
Greenhorn

Joined: Mar 15, 2004
Posts: 3
ok...can I do this in my home directory. There is a .cshrc file in my /export/home directory....right now it has a value
set path=(/vin /usr/bin /usr/ucb /etc .)
Can I just add it to the end...value?
Not that familiar with the Unix world.....
 
Don't get me started about those stupid light bulbs.
 
subject: Specifiying Java Version