SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Addict ewiz's Avatar
    Join Date
    Dec 2003
    Location
    Egypt
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Installed Java.. But...

    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?
    add your hosting company and plans for free
    Ahsan Host
    my business site
    Internet Plus

  2. #2
    SitePoint Wizard HarryR's Avatar
    Join Date
    Dec 2004
    Location
    London, UK
    Posts
    1,376
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

  3. #3
    SitePoint Addict ewiz's Avatar
    Join Date
    Dec 2003
    Location
    Egypt
    Posts
    218
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks
    add your hosting company and plans for free
    Ahsan Host
    my business site
    Internet Plus

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2005
    Location
    Vancouver,Bc,Canada
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    had the same problem...oh...thx harry weeee


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •