mini_banner

Tuesday, May 15, 2007

Installing Java Runtime Environment 6 in Feisty

This works for anyone running Ubuntu 7.04 Feisty Fawn, not just for Dell Inspiron 1501 users.

If you want to use the newest Java applications, you need to get Java 6. If you have Java 5 installed and running Azureus from fesity repos be warned that it doesn't play nice with Java 6. But the reason I moved to Java 6 is to install newest version on Azureus, the one in the repos bugs me and the newer one has added functionality and stability.

To install Java 6 and the browser plugin for mozilla:
sudo apt-get install sun-java6-jre sun-java6-plugin

Replace old version of Java with new:
sudo update-java-alternatives -s java-6-sun

Tell your system to use Java 6:
sudo gedit /etc/jvm

Then type this into the top of the file:
/usr/lib/jvm/java-6-sun
save file and close it

File should look similar to this:
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.

/usr/lib/jvm/java-6-sun
/usr/lib/jvm/java-gcj
/usr/lib/jvm/ia32-java-1.5.0-sun
/usr/lib/jvm/java-1.5.0-sun
/usr

Now test to make sure everything is running right:
java -version

You should see this:
java version “1.6.0″ Java(TM) SE Runtime Environment (build 1.6.0-b105) Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

Now your running the latest version of Java and able to run the newest version of Azureus.
edited by pHreaksYcle

11 comments:

Hebii said...

hey witht the sticker thing u think that thos laptops there selling are real ?

eZtaR said...

Hello :)

I just came across your site, and i have to say that i love it :)
Migrating to linux is always a bitch when your hardwaremaker doesn't make drivers specifically for linux, and being the semi-noob that i am, it's nice to have a "complete idiots guide" on how to do stuff (no insult intended) :)

Keep up the good work :)
I'll be coming back :)
/eZtaR

Anonymous said...

I just wanted you to know that I have officially switched to Ubuntu Fiesty Fawn, and i am not looking back!

Your Wifi guide really helped me to get the wifi working on my 1501 and tonight I will be installing my ATI driver and then wine, so I can install counterstrike through steam.

Thanks again man,

Zeb

www.zebulus.com

Fady said...

Hello my name is Fady, I use linux on my e1405, so some of your posts, have helped.

Cheers

Unknown said...

Thank you very much. it worked just like you described!

Brad said...

Running Kubuntu 7.04 on my home-built desktop. Your guide worked flawlessly. I salute you, sir.

Unknown said...

thank you. your instructions are right on the mark.

Andrew said...

It worked, but it didn't install the client version. After issuing java -version i get:

java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)

Unknown said...

@Andrew

Whether it's the Server or Client mode the VM operates in is selected automatically based on your hardware. The optimal one is selected (or what Sun believes optimal). I don't know how it works exactly but I think your machine has lots of memory or a server grade processor, hence the Server VM is used.

byteslash said...

amazing job, keep doin ur thing.

thanx

fanfantasy7 said...

when i check my java version on
http://www.java.com/fr/download/installed.jsp?detect=jre&try=1

its write your java version 1.6.0 is not the latest version