from: http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/

What I did to solve this problem was to add a new source

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

After that a normal

sudo apt-get update
sudo apt-get install sun-java6-jdk


This is followed by this pressing question:

After requesting and downloading a java install on a terminal, I got the following, and ONLY the following:

Package configuration...

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค Configuring sun-java6-jre โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ โ”‚...
โ”‚
โ”‚


There is no more to the window, no place to type a command, no way to read the whole agreement, nor to select Y/N or OK, or anything.

What do I do?

...

emeraldgirl08
August 8th, 2009, 01:53 AM
Have you tried pressing the TAB button?

gregapan
August 8th, 2009, 02:45 AM
emeraldgirl, thanks

I'm just wondering how users are supposed to know that TAB does magical things in ubuntu.

such things are not usually left to the user's guessing skills


I knew there was an easy way to do it...

Then, pick which to use, OpenJDK which is installed by default (and which an apt-get -purge didn't remove for me) or Sun's...

>Can I run both side by side?

Yes, you can and you can tell the system which one to use by default (for the Java software).

To get a list of the installed JDK

$ sudo update-java-alternatives -l

To set a new as default one (at the system level)

$ sudo update-java-alternatives -s


And just to add one more XAMPP related thing:

Once lampp is up and running, you want to run: sudo ufw enable to make sure folks aren't accessing your server, etc.

Labels: