LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   JRE/JDK installation onto a PowerPC form of Ubuntu. (https://www.linuxquestions.org/questions/linux-newbie-8/jre-jdk-installation-onto-a-powerpc-form-of-ubuntu-900815/)

DethGoddess 09-03-2011 12:50 AM

JRE/JDK installation onto a PowerPC form of Ubuntu.
 
Hello everyone, I am new to Linux and decided that I would make myself somewhat known here. The problem I am having is with a curb swiped Power Mac G4 from 2004 (I believe) that had been upgraded from OS9 to OSX. Prior to my heavy tinkering it did have OS9 on a 40gig HDD and OSX on the bigger 160gig HDD, I had managed to figure out how to delete and format the 40gig (with the help of a good friend who knew about Macs) and put a PowerPC friendly form of Ubuntu (10.04 Lucid Lynx) onto the 40gig. Being a Windows user since 3.1 was in use, I don't know much of Linux at all but am very lucky to even get this far.

To the point: I am trying to get a private Minecraft server going on this old machine and am in need of help to install Java on here to do so properly. Anyone know enough about this to help? I have been looking at how to do this properly for the past 5 or so hours, and finally gave up to post this thread.

ButterflyMelissa 09-03-2011 01:45 AM

Hi,

Welcome here, and thanks for keeping at least one PC out of the "Grand Landfill".

Okay, on to Java.

What you need are the Java packages from either Sun or your Repo.
The Repo, that's easy, follow the path of your distro.
The Sun packages need to be downloaded.

Next, follow these steps:

- open a console
- become Root (issue the "su -" command and supply the root password)
- locate the downloaded file, tip go to "/home/[user]/Downloads" - that'"s a possibly safe bet
- issue the following command :

Quote:

chmod +x [filename]
an example

Quote:

chmod +x jre-6u21-linux-i586.bin
- copy the file

Quote:

cp /home/[user]/Downloads/jre-6u21-linux-i586.bin /opt/jre-6u21-linux-i586.bin
go to that folder

Quote:

cd /opt
start the file up to install

Quote:

./jre-6u21-linux-i586.bin
and the JRE is installed.

To invoke...that depends...but you should be able to run Java stuff from then on...

Quote:

/opt/jre1.6.0_21/bin/java theProgram.class
as a humble example...

I'll keep this thread on the scope, dont worry!

Luck

Thor

-

DethGoddess 09-03-2011 02:06 AM

*facepalms* Ok I am unable to modify the root password now even if I give the command to do so. Otherwise it will not allow me to access the root.

ButterflyMelissa 09-03-2011 02:12 AM

No problem...it's just an "astuce" as said in french... :D

Can you open a console? If so enter "su -" the hyphen is part of the entry...
Can you type the password? There is no feedback, as you're possibly aware...
Upon success, the prompt should be different.

I'll follow up...this is my "primary thread" today...

Thor

DethGoddess 09-03-2011 02:21 AM

Quote:

su: Authentication failure
This is what I'm getting everytime I attempt to put a password in.

ButterflyMelissa 09-03-2011 02:26 AM

Hmm, okay...
You're using Ubuntu, lemme think...
Passwords (as everything in Linux) are CaseSensisive...maybe that's worth a shot? Have you ever done this (logging into a console) before?

Let's see...

knudfl 09-03-2011 02:29 AM

You can still get an Ubuntu package ..
http://www.multimediaboom.com/how-to...y-narwhal-ppa/


Or do this with the java, you downloaded : sudo ./jre-6u26-linux-i586.bin
JDK : sudo ./jdk-6u26-linux-i586.bin

DethGoddess 09-03-2011 02:30 AM

I've used "sudo" before but I've never used "su -" before. Is the console same as terminal, because I've been using the terminal. Perhaps it could be the problem all its own.

edit: By the way this is the desktop version of ubuntu.

ButterflyMelissa 09-03-2011 02:34 AM

A console or terminal, both are valid names, point is that you get to see a text-only screen where you can type stuff...but, you've used sudo before, so, let's take that path...

and, to quote knudfl

Quote:

Or do this with the java, you downloaded : sudo ./jre-6u26-linux-i586.bin
JDK : sudo ./jdk-6u26-linux-i586.bin
is the way to do this, to be executed in the /opt folder (top level), just to keep your system "clean"

Edit
Quote:

I've never used "su -"
I dont have sudo on my system, I'm the only one using it and (old skool as I am ;) ) I'm more comfortable with su- ...

DethGoddess 09-03-2011 03:19 AM

Quote:

E: Package sun-java6-plugin has no installation candidate
Story of what has been happening.

edit: Is there anyway to do this through the GUI?

DethGoddess 09-03-2011 03:33 AM

I found a JDK file in the software center. Hopefully it works properly, I just need to upgrade it.

ButterflyMelissa 09-03-2011 03:37 AM

Quote:

edit: Is there anyway to do this through the GUI?
Of course there is...you're using Ubuntu, so the Softare Center should do the whole thing...of course, Sun's JRE/JDK are not in there...

And...

Quote:

I found a JDK file in the software center. Hopefully it works properly, I just need to upgrade it.
You're right on the mark, it seems...

Edit : I use Arch Linux, we do not have a GUI to maniplate software, everything gets done in the console...hence my "leaning towards" the console...

knudfl 09-03-2011 03:43 AM

Quote:

Of course there is...you're using Ubuntu, so the Software Center should
do the whole thing...of course, Sun's JRE/JDK are not in there...
It will be available in Synaptic and 'Software Center' when ppa is added.
> > http://www.multimediaboom.com/how-to...y-narwhal-ppa/

DethGoddess 09-03-2011 03:44 AM

Quote:

Originally Posted by Thor_2.0 (Post 4460248)
I use Arch Linux, we do not have a GUI to maniplate software, everything gets done in the console...hence my "leaning towards" the console...

I know the feeling, I personally feel that where ever Mac is involved something isn't going to go my way.

ButterflyMelissa 09-03-2011 03:50 AM

Dont let it get you down...and, by the way:

Quote:

Power Mac G4 from 2004
...is NOT the Mac of 2011 of course, and Mac is HARD and SOFT in a bundle....

Personally, I feel more at ease in a console. But, that's grown over time...


All times are GMT -5. The time now is 10:53 PM.