Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Specifiying Java Version

 
Tanya Green
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 703
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The system variable PATH needs to be edited to point at the 1.3 version of the SDK.
HTH
Nigel
 
Tanya Green
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic