Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Other Distributions > Yoper Linux Help > Installing Java

Forgot Password?
 Yoper Linux Help   Officially recognised support forum for Yoper Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-29-2005   #1 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 89
Installing Java

Could someone please tell me how to install the latest java (j2re) runtime environment on my system. If not, does anyone know of any website that would tell me how to install it besides the java website? I have so much trouble trying to figure it out myself.

Thank you.
ksm89 is offline  


Reply With Quote
Old 07-29-2005   #2 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: South America
Posts: 152
Im sorry I will throw away this generic procedure, but IIRC, Java has a "self-extracting" file to download right? (not RPM), then basically all you do is to extract it somewhere (IIRC, it has a .bin extension, just run it to extract its contents).
Then in somewhere like your .bashrc, you put the following line
Code:
PATH=$PATH:/javaextracteddir/bin
Where "/javaextracteddir/bin" is where the "javac", "java" and other executables are.

Tell me if it works for you.

Cheers
darklordsatan is offline   Reply With Quote
Old 07-29-2005   #3 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 89
Well, so far so good, but when i type "java -version" into a terminal, it gives me this:

java version "1.4.1-Ycompiled"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-Ycompiled-1043268535)
Java HotSpot(TM) Client VM (build 1.4.1-Ycompiled-1043268535, mixed mode)

1.4.1 is the old java version. 1.5.0 is the new one i just downloaded. Is there something else i have to do?(In other words, when i type "java -version" it should say 1.5.0, not 1.4.1)
ksm89 is offline   Reply With Quote
Old 07-29-2005   #4 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: South America
Posts: 152
Ughh nasty. I guess the "Ycompiled" is because of Yoper. Thats why I mostly like to install libraries myself, and not use/install the ones bundled with the OS.

Did you set the path already?
Either way, whats the output of
Code:
echo $PATH
Also, check out the /usr/local/jdk folder or /opt and see if there is any java executables there (besides the new 5.0, in case you uncompressed it there)
You can use find command to to this

Cheers
darklordsatan is offline   Reply With Quote
Old 07-29-2005   #5 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 89
Here is the output of "echo $PATH":

/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/jdk/bin:/usr/local/gnome/bin:/usr/local/jre1.5.0_04/bin

I cant find any java excutables anywhere, but my real question is, what am i supposed to do with the folder that the "jre-1_5_0_04-linux-i586.bin" file creates? Am i supposed to unpack this folder somewhere special? Thanks for the replies.
ksm89 is offline   Reply With Quote
Old 07-29-2005   #6 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: South America
Posts: 152
Quote:
Originally Posted by ksm89
Here is the output of "echo $PATH":

/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/local/jdk/bin:/usr/local/gnome/bin:/usr/local/jre1.5.0_04/bin
.
There you go. Theres a "/usr/local/jdk/bin" in your path, which I guess points back to the old java installation.
You dont need to do anything with your uncompressed folder -so far-.
If I was you, Id delete everything in /usr/local/jdk/ and move the contents of /usr/local/jre1.5.0_04/ in there, however, thats not for the faint of heart and would probably bring some issues with applications using the old jdk (since its bundled with Yoper...). If you are not a newbie, you might try this, however, its kinda risky.
So try this instead; change my prior suggestion to
Code:
PATH=/usr/local/jre1.5.0_04/bin:$PATH
Now, issue a
Code:
java -version
It should output something about jre 5.0 (or 1.5)

Let me know.


[Edit]
Im sorry, programmers fault. I thought you were trying to install the "jdk" and not the "jre", so the moving/renaming thing is a little more tricky, just forget that, just try the PATH part (well, the other was meant to make you "hack" your Linux distro if you wanted to, anyway)
darklordsatan is offline   Reply With Quote
Old 07-29-2005   #7 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 89
YES!!!!
That did it! Now the output of "java -version" is:

java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)

Thank You so much!!
ksm89 is offline   Reply With Quote
Old 07-29-2005   #8 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: South America
Posts: 152
Ok, glad to be useful.

Good luck dude.
darklordsatan is offline   Reply With Quote
Old 07-29-2005   #9 (permalink)
Just Joined!
 
Join Date: Apr 2005
Posts: 89
But now another problem...

When i try to install limewire, it says: "Error: Failed Dependencies: j2re >= 1.4.1 is needed by LimeWire-free-4.8.1-0"

What happened? I thought i had j2re installed!?! How do i get limewire installed? Thanks.
ksm89 is offline   Reply With Quote
Old 07-29-2005   #10 (permalink)
Linux Newbie
 
Join Date: Apr 2005
Location: South America
Posts: 152
First of all, what is the format for the limewire installation program? A .bin? And does it gets extracted to somewhere you know, or you dont know?
And how do you run it, you just type "limewire"?

Anyway, tell me the output of
Code:
whereis limewire
whereis java
darklordsatan is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 11:07 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2