Installing Sun Java 6 on Ubuntu 7.10 (Gutsy)

About 2 years ago, if someone asked me what the hardest part about using Linux was, I would have replied with “Sun Java is just about impossible”. The instructions supplied never worked or where too hard to understand. My directorys where in the wrong place. It was hell.

But now, after countless encounters with Java as Linux grows in popularity among desktop users, I have found a way of installing it that has never failed for me yet.

Now, these instructions have been tested on Ubuntu 6.06, Ubuntu 6.10, Ubuntu 7.04, Ubuntu 7.10. There may be minor tweaking involved but its pretty dead on for most Ubuntu and Kubuntu Distros.

And, as always, BACK UP YOUR FILES! By using these instructions you in no way hold linuxhacks.us or myself accountable for any damage caused to your hardware, software, or documents.

First, go here:
http://java.com/en/download/linux_manual.jsp?locale=en&host=java.com:80
and download “Linux (Self-extracting file)” to your desktop.

Next, open a terminal and enter the following in order. I’m going to be explaining each step so that new Linux users can get an understanding of the process involved.

sudo -i
Enter your password. This puts you in root user mode.

mkdir /usr/java

This will make a new directory “java” in the directory “usr”

cd /home/’user name’/Desktop

Change the directory you are in to “Desktop”

mv jre-6u3-linux-i586.bin /usr/java
Moves the file into the java directory you created earlier.

cd /usr/java

Change the directory you are in to “java”

chmod +x jre-6u3-linux-i586.bin

This will change the .bin file into an executable file.

./jre-6u3-linux-i586.bin

This tells the computer to execute the .bin file and start the installation process.

Accept the agreement then continue on to install the Mozilla plugin.

In a terminal type the following:

ln -s /usr/java/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins

What this does is make a symbolic link between the plugin in the java directory and the directory that all the other plugins for mozilla are. This allows mozilla to use java when surfing the web.

Note: Your installation directory of Mozilla may be different then that above, so adjust accordingly.

Now, restart any open Mozilla/Firefox windows.

Read More Post

STAY CONNECTED

Most Popular

Why Serviced Apartments Are the Perfect Choice for Long-Term Stays in Singapore – Everything You Need to Know
17 Dec

Why Serviced Apartments Are the Perfect Choice for Long-Term Stays in Singapore – Everything You Need to Know

If you’re heading to Singapore for a few weeks or many months, maybe for work or study or just to

Manifesting Your Dream Career: Finding Your Passion And Purpose
01 Aug

Manifesting Your Dream Career: Finding Your Passion And Purpose

Are you passionate about finding your dream career? Manifesting can help you align your career with your passions and purpose.

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service
27 Feb

Revolutionizing Your Ride: Expert Auto Service At Carolina Auto Service

Finding a reliable auto service provider is paramount in the bustling world of vehicle maintenance and repair. That's where Carolina

Floratam: The Robust Grass Solution From Council Growers SOD
25 Jan

Floratam: The Robust Grass Solution From Council Growers SOD

Floratam grass, a popular St. Augustine variety, has become a go-to choice for homeowners and landscapers seeking a lush, durable

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair
25 Jan

Carolina Mobile Autoservice: Your Go-To For Expert Brake Service Repair

For vehicle owners, the braking system is among the most critical components for safety and performance. Carolina Mobile Autoservice, a

Safeguarding Your Property: Expert Water Damage Services By MBC Capital
24 Jan

Safeguarding Your Property: Expert Water Damage Services By MBC Capital

Water damage can significantly impact homes and businesses, often leaving a trail of destruction and disruption in its wake. Understanding