PDA

View Full Version : [ubuntu] java



360sully360
January 30th, 2009, 06:41 PM
i have just installed ubuntu and am using for the first time. I am trying to install winrar but i need to have java installed. Has anyone got the code i type in the terminal pls. I am finding it realy hard to get used to ubuntu it is so different to vista and xp. any advice welcome thanx:popcorn:

taurus
January 30th, 2009, 06:44 PM
Applications -> Accessories -> Terminal

sudo apt-get update
sudo apt-get install unrar
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
When you get to the java licensing screen, press the Tab key to highlight the <OK> and Return to accept it.

360sully360
January 30th, 2009, 06:55 PM
thank you

DeMus
January 30th, 2009, 06:59 PM
Applications -> Accessories -> Terminal

sudo apt-get update
sudo apt-get install unrar
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
When you get to the java licensing screen, press the Tab key to highlight the <OK> and Return to accept it.

jan@2-Quad:~$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-plugin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-plugin has no installation candidate

What am I missing?

taurus
January 30th, 2009, 06:59 PM
jan@2-Quad:~$ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-plugin is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package sun-java6-plugin has no installation candidate

What am I missing?

Post your /etc/apt/sources.list.


cat /etc/apt/sources.list

DeMus
January 30th, 2009, 07:01 PM
Post your /etc/apt/sources.list.


cat /etc/apt/sources.list

jan@2-Quad:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 8.04.2 _Hardy Heron_ - Release amd64 (20090121)]/ hardy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://nl.archive.ubuntu.com/ubuntu/ hardy main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://nl.archive.ubuntu.com/ubuntu/ hardy-updates main restricted
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy-updates main restricted

## 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
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://nl.archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy universe
deb http://nl.archive.ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy-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.
deb http://nl.archive.ubuntu.com/ubuntu/ hardy multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy multiverse
deb http://nl.archive.ubuntu.com/ubuntu/ hardy-updates multiverse
deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://nl.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
# deb-src http://nl.archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

deb http://security.ubuntu.com/ubuntu hardy-security main restricted
deb-src http://security.ubuntu.com/ubuntu hardy-security main restricted
deb http://security.ubuntu.com/ubuntu hardy-security universe
deb-src http://security.ubuntu.com/ubuntu hardy-security universe
deb http://security.ubuntu.com/ubuntu hardy-security multiverse
deb-src http://security.ubuntu.com/ubuntu hardy-security multiverse
deb http://www.ftd4linux.nl/releases/ubuntu hardy main