View Full Version : [ubuntu] how can i install java?
infla
February 19th, 2010, 09:34 PM
Hello,
I've formatted my whole computer (because i had a few linux distro's on it. and i'd like to reinstal my ubuntu aswell.
but on some sites, I need Java. but I don't got that installed. I don't know how I have to install it. any ideas?
greetings,
Infla
ratcheer
February 19th, 2010, 09:43 PM
Which Java do you want? I downloaded mine from java.sun.com, but others are available.
Tim
infla
February 19th, 2010, 09:46 PM
oh? I don't know :P
just a normal java version i guess :P
infla
February 19th, 2010, 09:47 PM
well, i've downloaded something there, but how can i install it?
infla
February 19th, 2010, 09:48 PM
oh, wait, I think that I got it.
gjoellee
February 19th, 2010, 09:49 PM
you can just install this:
sudo atp-get install ubuntu-restricted-extras
it installs java, flash, media codecs and fonts.
San_SS!
February 19th, 2010, 09:53 PM
Well, it depends on what you want, but personally I like the Sun java package:
If you want the Java Runtime Envirnoment:
$sudo aptitude install sun-java6-jre
If you need the Development Kit:
$sudo aptitude install sun-java6-jdk
If you want the plugin for your browser:
$sudo aptitude install sun-java6-plugin
I hope this is useful for you.
infla
February 19th, 2010, 10:01 PM
San_SS,
i can't do that, because:
/var/lib/dpkg/lock
that is locked (i'm not permitted to do that)
so I think that i have to unlock it with chmod? but what was the code for that?
greetings,
Infla
gjoellee
February 19th, 2010, 10:09 PM
San_SS,
i can't do that, because:
/var/lib/dpkg/lock
that is locked (i'm not permitted to do that)
so I think that i have to unlock it with chmod? but what was the code for that?
greetings,
Infla
Are you already installing something? Is synaptic running? If not, just reboot, and it should be solved.
infla
February 19th, 2010, 10:14 PM
Are you already installing something? Is synaptic running? If not, just reboot, and it should be solved.
okay, i'll try
infla
February 19th, 2010, 10:21 PM
no, i still can't.
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
infla
February 20th, 2010, 01:33 PM
anyone?
Soul-Sing
February 20th, 2010, 04:09 PM
anyone?
if all other -apt/software manager/synaptic etc is closed
sudo rm /var/cache/apt/archives/lock
sudo apt-get update
Did you sign the license that comes with sun java? If not sometimes linux comes with this errors....
ubantu_user
February 24th, 2010, 06:41 PM
I tried installing using the commands....I get the following error
$ sudo aptitude install sun-java6-plugin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Initializing package states... Done
Writing extended state information... Done
Couldn't find any package whose name or description matched "sun-java6-plugin"
Couldn't find any package whose name or description matched "sun-java6-plugin"
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Well, it depends on what you want, but personally I like the Sun java package:
If you want the Java Runtime Envirnoment:
$sudo aptitude install sun-java6-jre
If you need the Development Kit:
$sudo aptitude install sun-java6-jdk
If you want the plugin for your browser:
$sudo aptitude install sun-java6-plugin
I hope this is useful for you.
oldos2er
February 24th, 2010, 07:48 PM
Check System, Administration, Software Sources, and make sure you have the multiverse repository enabled.
QIII
February 24th, 2010, 09:14 PM
The version of Java you can install from the repos is dated.
You may want to either install OpenJDK or follow the instructions here:
http://sites.google.com/site/easylinuxtipsproject/java
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.