I installed the latest JDK successfully using the self extracting file. But when I check the version (java -version), it shows the old version number.
What is the step that I should do so that the new version propagates?![]()
| SitePoint Sponsor |
I installed the latest JDK successfully using the self extracting file. But when I check the version (java -version), it shows the old version number.
What is the step that I should do so that the new version propagates?![]()





Hi,
This is probably because the old java path is still in your PATH environment variable.
On most distributions this points to a symlink (such as /usr/lib/java, /usr/java, /opt/java or whatever), and the symlink points to your actual java installation directory.
If this is the case, you can just remove the symlink, and create a new symlink in it's place to the new java installation, and everything should switch over fine.
If the entry in your PATH environment variable points to an explicit path, you'll have to change it at source (think ~/.bashrc , /etc/profile.d/whatever or /etc/profile).
But this differs highly depending on what type of distribution or unix variant your using (Last time I looked, it's in some crazy place like /usr/SUNw/java/1.3 on Solaris)
Thanks,
Harry![]()
Thanks![]()
had the same problem...oh...thx harry weeee
Bookmarks