sun java

Discussion in 'all things UNIX' started by cet, Oct 8, 2011.

Thread Status:
Not open for further replies.
  1. cet

    cet Registered Member

    Joined:
    Sep 3, 2006
    Posts:
    876
    Location:
    Turkey/İzmir
    I am using Ubuntu 10.04 and sun java 6-26 ( 32bit).Should I update to 6-27 ? There was a link about updating java on the Ubuntu forums but when I click on it the page does not load.Can someone please give me the link to update java.
    Or do I have to update to java 7?
    I have the repository but as you all know it will not be updated anymore.
     
  2. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,137
    I am using version 26 as well and this on Natty, if one needs to update, the only way is downloading from Sun site and doing it manually. If 26 is working and there are no security issues yet, suggest you stick to it.


    I just removed Sun Java and installed Open JDK and iced-tea plugin, everything including Eclipse, Jdownloader and Java web pages work with Opera and FF.
     
    Last edited: Oct 8, 2011
  3. cet

    cet Registered Member

    Joined:
    Sep 3, 2006
    Posts:
    876
    Location:
    Turkey/İzmir
    Ok,I will stick with the 26 version.But if there is a security update I would like to learn how to do it.
    Is there a manual for this?
     
  4. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,137

    Cet,

    Have you tried the latest Open JDK?
     
  5. cet

    cet Registered Member

    Joined:
    Sep 3, 2006
    Posts:
    876
    Location:
    Turkey/İzmir
    I have to use java for the chat on some sites and I do not know if it is compatible.I do not have any problems now so I did not want to change settings install and uninstall programs.
     
  6. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,137

    You can remove Sun Java and try out Open JDK, for me its now working with all the sites I use including chat, banking etc. If it doesn't work you can try to install Sun Java using this method http://maciek.hubpages.com/hub/Ubuntu-Install-Sun-Java-Alternatives
     
  7. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,713
    Location:
    George, S.Africa
    ,,,,,(but u26 is still OK no security issues 'yet'.) i would stay with u26 for now.
    Or jre7
    Download the tar.gz and save somewhere.

    Make directory java in /opt:-
    cd /opt
    sudo mkdir java


    sudo cp -r jre-7-linux-x64.tar.gz /opt/java/

    cd /opt/java/

    sudo chmod a+x jre-7-linux-x64.tar.gz
    sudo tar xvzf jre-7-linux-x64.tar.gz

    sudo touch /etc/profile.d/java_home.sh
    sudo kate /etc/profile.d/java_home.sh (you can use whatever text editor you want here)
    ---ADD THESE LINES---
    JAVA_HOME=/opt/java/jre1.7.0
    PATH=$PATH:$JAVA_HOME/bin

    export JAVA_HOME PATH

    Save the file and exit.

    sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.7.0/bin/java" 1

    sudo update-alternatives --set java /opt/java/jre1.7.0/bin/java

    Also reload your system wide PATH /etc/profile by typing the following command:

    source /etc/profile

    Type: java -version (to check)


    sudo update-alternatives --config java (Check)

    Then make your soft link(s).
     
  8. cet

    cet Registered Member

    Joined:
    Sep 3, 2006
    Posts:
    876
    Location:
    Turkey/İzmir
    Maybe I should install the openjdk and the icedtea plugin and next by using this command ''sudo update-alternatives --config java'' choose the openjdk and test if some sites are working.If not than I can change back to sun java.
    Is there anything wrong to do this,can the both java's co-exist? Is there anything I should be aware of during this process?
    If the open java works than I can uninstall the sun-java.


    Is this a reliable site? h ttps://sites.google.com/site/easylinuxtipsproject/java
     
    Last edited: Oct 9, 2011
  9. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,137
    Cet, if you install Open JDK, remove Sun Java first, then install Open JDK via software center or Synaptic.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.