Question:

JAVA in UBUNTU 8.04LTS?

by  |  earlier

0 LIKES UnLike

Hi friends. I am a java learner. I need to learn java in Linux.

I have UBUNTU 8.04 LTS installed. How to get java for it, install, and work. Pls suggest me in this matter.

 Tags:

   Report

1 ANSWERS


  1. you should enable the Universe repository in Add/Remove programs, and install either the openjdk-6-jre package or the sun-java6-bin package.

    Choosing the default Java to use

    Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this:

        * Open a Terminal window

        *      Run sudo update-java-alternatives -l to see the current configuration and possibilities.

        *      Run sudo update-java-alternatives -s XXXX to set the x*x java version as default. For Sun Java 6 this would be sudo update-java-alternatives -s java-6-sun

        *   Run java -version to ensure that the correct version is being called.

    You can also use the following command to interactively make the change;

        * Open a Terminal window

        *  Run sudo update-alternatives --config java

        * Follow the onscreen prompt

    hope this will help

    cheers:)

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions