geekhack

geekhack Community => Other Geeky Stuff => Topic started by: Computer-Lab in Basement on Sat, 14 November 2009, 19:39:58

Title: Need help with installing Java on Linux
Post by: Computer-Lab in Basement on Sat, 14 November 2009, 19:39:58
I just loaded Ubuntu on one of my computers, and one of the online games i play requires Java to run, and being new to Linux, i cannot figure out how to install Java with the instructions that are provided. Could anyone help me?
Title: Need help with installing Java on Linux
Post by: pfink on Sat, 14 November 2009, 20:34:29
Quote from: Computer-Lab in Basement;132526
I just loaded Ubuntu on one of my computers, and one of the online games i play requires Java to run, and being new to Linux, i cannot figure out how to install Java with the instructions that are provided. Could anyone help me?


Check here:

https://help.ubuntu.com/community/Java
Title: Need help with installing Java on Linux
Post by: tamasrepus on Sat, 14 November 2009, 21:41:09
Do what the page pfink links to says.

Most likely, you'll want either the OpenJDK JVM or Sun's JVM (the former tends to work better on Linux, but Sun's JVM is still the one with the most compatible with everything).

It'd not hurt to tell us what game you're trying to install, and link to the instructions.
Title: Need help with installing Java on Linux
Post by: ch_123 on Sun, 15 November 2009, 05:57:32
I assume that you are running Ubuntu. Last I checked you needed to run -

'sudo apt-get install ubuntu-restricted-extras'
Title: Need help with installing Java on Linux
Post by: Computer-Lab in Basement on Sun, 15 November 2009, 18:01:42
I need to install Sun Java in order to get my game to work, and here are the instructions that are provided:

http://www.java.com/en/download/help/5000010500.xml#selfextracting (http://www.java.com/en/download/help/5000010500.xml#selfextracting)

I dont know the root password that allows me to use the "su" command.  Do i need to use these exact instructions to get this to work?
Title: Need help with installing Java on Linux
Post by: tamasrepus on Sun, 15 November 2009, 18:23:15
I missed that you mentioned that it's an online game. That means you need the Java plugin? (You're not providing us with enough information to really help you)

If you're using Firefox, run this command in a terminal:

sudo aptitude install sun-java6-plugin

This will install the plugin you presumably need for the game, and automatically pull in the Java JRE/etc.

By the way, when working with Linux it's best you get software through your package management system (i.e. the Ubuntu repositories) rather than downloading and installing things yourself.
Title: Need help with installing Java on Linux
Post by: Computer-Lab in Basement on Sun, 15 November 2009, 18:25:53
Quote from: tamasrepus;132748
I missed that you mentioned that it's an online game. That means you need the Java plugin? (You're not providing us with enough information to really help you)

If you're using Firefox, run this command in a terminal:

sudo aptitude install sun-java6-plugin

This will install the plugin you presumably need for the game, and automatically pull in the Java JRE/etc.

By the way, when working with Linux it's best you get software through your package management system (i.e. the Ubuntu repositories) rather than downloading and installing things yourself.


Thanks for the help, and I'll try to be more informing of my situation.
Title: Need help with installing Java on Linux
Post by: Computer-Lab in Basement on Sun, 15 November 2009, 18:47:52
I have another little mishap here, the installer came up an agreement, and I don't know how to accept the agreement and proceed with the installation. Here is a screenshot.

This may make me look stupid, but I just want to install Java and play Runescape.  How do I solve this problem?
Title: Need help with installing Java on Linux
Post by: bigpook on Sun, 15 November 2009, 18:55:00
Use the tab key to 'tab' to the OK button, then press enter.
Title: Need help with installing Java on Linux
Post by: Computer-Lab in Basement on Sun, 15 November 2009, 19:05:58
Thank you all so much.
Title: Need help with installing Java on Linux
Post by: ch_123 on Mon, 16 November 2009, 12:00:26
Quote from: Computer-Lab in Basement;132744
II dont know the root password that allows me to use the "su" command.  Do i need to use these exact instructions to get this to work?


In ubuntu, the 'su' command is disabled by default. You are instead encouraged to type 'sudo' in front of any command you need root privelidges for.Typing 'sudo -s' or 'sudo su' will do the same thing as 'su', but you don't really need to use it all that commonly. (Bare in mind that if you run a command with sudo, the password is saved for the next 10 mins so that if you need to run more than one sudo command, you only need to type the password twice.
Title: Need help with installing Java on Linux
Post by: AndrewZorn on Mon, 16 November 2009, 12:03:01
ubuntu doesnt even really have root set up, by default...
you are getting the password wrong because it does not have one yet
Title: Need help with installing Java on Linux
Post by: bigpook on Mon, 16 November 2009, 12:26:26
If you want to set the root password do the following.

From the command line.

Type sudo password

It will ask you for your password; once entered it will ask you to Enter new UNIX password and then to retype it.

Once done, you can just su to root and be lord, god, king of the machine. You even get a bash prompt that ends in an octothorpe. How cool is that.
Title: Need help with installing Java on Linux
Post by: itlnstln on Mon, 16 November 2009, 12:31:53
Quote from: bigpook;132907
octothorpe. How cool is that.

What's really cool is that I learned a new word today.
Title: Need help with installing Java on Linux
Post by: itlnstln on Mon, 16 November 2009, 12:36:06
Speaking of sudo... some sudo news (http://arstechnica.com/open-source/news/2009/11/microsofts-psuedo-sudo-patent-doesnt-really-cover-sudo.ars) not really about sudo... kinda.
Title: Need help with installing Java on Linux
Post by: msiegel on Mon, 16 November 2009, 13:28:19
java quick install:

"sudo make me a tall latte"

use in the command line of any starbucks.

the build happens in the background, but a prompt will come back:
$3