James Selvakumar’s Blog

February 24, 2008

Installing NetBeans 6.0 on Ubuntu-7.10

Filed under: netbeans,virtualization — James @ 4:40 pm

I followed the instructions mentioned in this NetBeans Wiki to install NB 6.0 on my ubuntu.

But I feel some more information can be added to this wiki.

For example, when i ran the command “sudo apt-get install sun-java6-jdk“, ubuntu complained to me that this package is not found in its repositories.

The problem here is that the package sun-java6-jdk is available in the ubuntu “multiverse” repository which is disabled by default.

In ubuntu, the repositories are defined in the file “/etc/apt/sources.list”. Take a backup of this file, in case if you want.

Now open this file and uncomment the lines which define the “universe” and “multiverse” respoitories.

It should look something like this now:

# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

The job is not done yet.

Run the command “sudo apt-get update” in the terminal to instruct ubuntu to update the package details w.r.t the repositories we enabled just now.

The process might take some time. Wait patiently.

Once the update is done, ensure that the “sun-java6-jdk” package is available in the repositories, by issuing the command “apt-cache search sun-java6-jdk“. You might get something like this in the terminal window:

james@kuttima-gifty:/etc/apt$ apt-cache search sun-java6-jdk
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)

Now we are rest assured that our desired packages are available.

Now run the commmand “sudo apt-get install sun-java6-jdk” in the terminal. Depending on your connection speed, this might take quite some time.

Then just follow the instructions to complete the installation.

In the meanwhile, don’t forget to download the “netbeans 6.0″ installer from netbeans.org. Once you downloaded the installer, you can run it by navigating to the appropriate folder.

In my case, i needed to issue the following command:

sudo sh netbeans-6.0.1-ml-javaee-linux.sh

This will invoke the netbeans installer and just follow the instructions to complete the installation process.

That’s it, netbeans will install itself smootly on your machine.

About these ads

1 Comment »

  1. Hello, I think your site might be having browser compatibility issues.
    When I look at your blog in Opera, it looks fine but when opening in
    Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up!
    Other then that, excellent blog!

    Comment by Homes For Sale In Oakhurst — February 11, 2013 @ 10:08 pm | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Rubric Theme. Create a free website or blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: