Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to install Java?

I have tried many things and nothing works. What files do i need to download for this to work? there is no internet connection in ubuntu, so I want to download 1 or 2 files and install from desktop.

I had a few different Java files that I tried, and Terminal says that it needs java-common and some other things. WHY CAN"T IT JUST BE EASY???????????????

simple instructions for a simple man please! Thank you for your help!!

share|improve this question

marked as duplicate by fossfreedom Feb 22 '12 at 11:02

This question was marked as an exact duplicate of an existing question.

If you have no internet connection - please follow the links in the bountied answer to install java from a tarball (JRE/JDK 6 or 7) – fossfreedom Feb 22 '12 at 11:03
If the host is connected to the internet choose 'bridged' in network settings from the virtualbox manager to access internet via the host in your virtualized Ubuntu. – Takkat Feb 22 '12 at 12:02

It is not easy because you work against the package management. In Linux, most things are split up in lots of packages, making it easy to install with tools like apt-get, but a pain to install manually.

I would recommend getting the internet connection to work in your guest and use the package manager there.

You might have luck with Oracle's Java that hopefully comes in one big file, but I have never used that.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.