• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can't update to JDK 6 from 5 on Solaris

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I have 2 version os Java running on my Solaris 10 machine: JDK 4 and 5. I have just installed JDK 6 in a seperate, non-default folder. I have followed all the sun steps correctly.

Problem is, a 'java -version' command shows JDK 5. I have added /export/home/java/jdk1.6.0_22/bin to my PATH variable.

Can anyone point me in the right direction to change the version?

Thanks,
David
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you add it in front of other jdk paths ? It must appear before others.
 
David McWilliams
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christophe Verré wrote:Did you add it in front of other jdk paths ? It must appear before others.



Strangely, there is no other jdk paths in there, even though I am developing with Jdk 5.
 
David McWilliams
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David McWilliams wrote:

Christophe Verré wrote:Did you add it in front of other jdk paths ? It must appear before others.



Strangely, there is no other jdk paths in there, even though I am developing with Jdk 5.



Ok, moving it up the path worked. Strange because of point above.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David McWilliams wrote:
Ok, moving it up the patgh worked. Strange because of point above.



You might have a symbolic link to java in one of the other paths. It may be wiser to look for it and, if there's one, update it.
 
David McWilliams
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Christophe Verré wrote:

David McWilliams wrote:
Ok, moving it up the patgh worked. Strange because of point above.



You might have a symbolic link to java in one of the other paths. It may be wiser to look for it and, if there's one, update it.



I had a look at symbolic link /usr/java and it mentioned my jdk 6 folder. It works anyway so I'll move on.

Thanks for all replies.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic