File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Specifiying Java Version" Watch "Specifiying Java Version" New topic

Specifiying Java Version

Tanya Green

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 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.
Tanya Green

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.....
I agree. Here's the link:
subject: Specifiying Java Version