Monday, May 18, 2009

Configure Java on Ubuntu

When i need to use java on Ubuntu, I just use " sudo apt-get install sun-java6-jre" and "sudo apt-get install sun-java6-jdk".

Then I just started to use. Though I encountered some problems, I never released that the java I used is not the one I installed instead the one Ubuntu provides originally, i.e. gij.

To ensure the sun-java is used when you use java or javac command, do the following:
sudo update-alternatives --config java
Then select the corresponding item.
sudo update-alternatives --config javac
Then select the corresponding item.

After configured java correctly, I find that the weka which cannot be used before can work correctly!!!!

Do remember to make the configuration correct!!!!!

No comments:

Post a Comment

Google+