Ubuntu 7.10 New Features Look Good
28 09 2007The Ubuntu community released the first beta of Ubuntu 7.10 today and the list of features is looking good.
I’m so excited about the following features:
Check out the list of features and if you have never tried Ubuntu yet, give it a try. When the final version of 7.10 comes out, it should be very very sweet.
Comments : No Comments »
Categories : Linux, Ubuntu
Install Java On Ubuntu
21 09 2007It is so easy to install Java on Ubuntu now. On Ubuntu 7.04 (Feisty Fawn), follow these steps:
1) Make sure you have the right repositories on your sources.list file.
Edit your sources.list file the following way:
sudo gedit /etc/apt/sources.list
or if you are not using gnome (e.g. you are logged in through ssh):
sudo nano /etc/apt/sources.list
If the following lines are not already there, add them:
deb http://us.archive.ubuntu.com/ubuntu feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu feisty universe multiverse
Save the file (in nano use Control-O to save and then Control-X to exit).
Now you need to tell the package manager to update it’s database:
sudo apt-get update
2) Install Java using apt-get
I currently have both Java 5 and Java 6 installed on my machine and it’s very easy to switch between the two. Java 6 has some nice goodies such as JSR-223 and better jconsole that I like to use.
For Java 5:
sudo apt-get install sun-java5-jre sun-java5-jdk sun-java5-plugin
For Java 6:
sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin
There are other packages that you might be interested in:
3) Verify installation
Verify that you have the correct version of java running:
java -version
For example, on my machine (yes, I call it tiwouj):
To see a list of the java versions that you have installed, you can use the following command (it’s a letter L at the end of the command):
update-java-alternatives -l
Here is my list:
This should show you a list of all the java alternatives you have installed. java-gcj is the free version of Java from the GNU project and comes installed by default with Ubuntu so you should see it. To switch to a different version, use the following command:
sudo update-java-alternatives -s <version-desired>
e.g:
sudo update-java-alternatives -s java-1.5.0-sun
Make sure it worked:
java -version
That’s it! How easy was that? You have to love apt-get.
Comments : 7 Comments »
Categories : Java, Linux, Ubuntu


![[image]](http://mowser.com/img?url=http%3A%2F%2Fdambalah.files.wordpress.com%2F2008%2F06%2Fruby_attendee_small.png)