Installing Java on linux?

EpiK

Onyx user!
Reputation
0
I can't figure out how to do it. Idk why it has to be so damn complicated. Can anybody help me?

Thanks
 
What distro do you have? im pretty sure ubuntu comes with java installed. do you mean jdk?
 
I have xbuntu which is pretty much the same thing and it didn't come with it :/
 
try typing this in terminal

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
 
Ive tried this before and i tried it again and got this.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package sun-java6-jre 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-jre has no installation candidate
 
try this
Open up "Software Sources" (Applications->System->Software Sources)
On the first tab make sure all are ticked except "Source Code"
close that.
Then open a terminal(applications>accessories>terminal)
then type

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

If that doesn't work, try typing this in terminal

Code:
sudo apt-get update

than

Code:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
 
They were all already ticked. :/

Just to let you know im on 64 bit if that matters.
 
EpiK said:
They were all already ticked. :/

Just to let you know im on 64 bit if that matters.

You try the second thing I put?
 
Well this is my last try, try this

Code:
sudo apt-get install xubuntu-restricted-extras

that will get a few things, including java
 
Sorry mate I tried, try going over to hackforums and posting the topic there. or ubuntu forums
 
Open up "Software Sources" (Applications->System->Software Sources)
On the first tab make sure all are ticked except "Source Code" - Close that


Then open a terminal(applications>accessories>terminal)
then type
Code:
Code:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
(when you type your password you will not see it on screen)

It will start to install. It will ask for you to agree to license terms. Select Yes, and hit Enter.


After it has installed type in the terminal
Code:
Code:
java -version
the output should look like this

java version XXX
Java(TM) SE Runtime Environment (build xxxxxxx)
Java HotSpot(TM) Client VM (xxxx, mixed mode, sharing)

To check if it is enabled in firefox, open firefox and in the address bar type
Code:
about:plugins



EDIT: If that doesn't work, try:

Code:
sudo apt-get install sun-java6-jre sun-java6-jdk

:3
Copied from ubuntuforums.org.
 
why not just open the software centre and search up java? should be under developer tools :p
 
Carbon said:
Java is default on Ubuntu.

Thats what I said but OP said it isn't installed.


@OP

Did you try checking the java version in terminal to completely make sure you don't have it?

Code:
java -version
 
1. Get "Wine"
2. Get the runescape downloadable version
3. Run in wine


And to all who said that Java comes default with ubuntu, no it doesn't.
 
Go to Ubuntu Software Center > Search Java > Install > ???? > Profit?
That's what I did.
 
Back
Top