Red Hat & Java question

Place to discuss Fedora and/or Red Hat
Post Reply
Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Red Hat & Java question

Post by Ice9 » Sat Feb 15, 2003 1:46 pm

I tried to install Limewire, it gives me "Error: can't find libjava.so"
(it's in /usr/lib/j2re1.3.1/lib/ppc)

So next I verified if the java path was in my .bash_profile, it wasn't.
I added it (/usr/lib/j2re1.3.1/bin) thinking that the problem would be solved ....
It wasn't, still the same error, so I switch to a terminal and do
$ which java
and I got
/usr/bin/java

Why? It's not the path I added and libjava.so still gives an error when I try to install Limewire???

Any help would be greatly appreciated :)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Feb 15, 2003 2:07 pm

Your limewire app is looking for the library libjava.so. You could add the directory that libjava.so is in (/usr/lib/j2re1.3.1/lib/ppc) to the /etc/ld.so.conf file and then run the "ldconfig" command, or create symbolic links in /usr/lib that point to the java libraries. If neither of those have an effect then the limewire app must be hard coded to look for it in another directory which would be both unusual and bad. Can you compile from source? Also I assume you are running a Mac?

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 » Sat Feb 15, 2003 2:19 pm

Erm, no I'm not running a Mac, but I wondered if the /ppc dir my libjava.so is in meant powerpc, I guess it does :)
So it's not gonna work is it?
I installed the standard runtime I downloaded from Sun I think, could it be that something went wrong during the install?

If I download a new version and install it, won't it interfere with the java plugin I have for Mozilla?
Do I have to clean up j2re1.3.1 before installing another version?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Feb 15, 2003 2:35 pm

Yeah, if you don't have a PPC then you have the wrong Java. Get rid of it and install the x86 version. I have the j2re v1.4.1 RPM installed on my machine. But I don't have limewire so I can't tell you if it will work or not.

http://java.sun.com/linux

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 » Sat Feb 15, 2003 3:00 pm

Ok, I cleaned up the jre for ppc :oops:
Downloaded the 1.4.1 runtime, installed it, seems like everything went ok.
But now when I do $Which java I get this

Code: Select all

[yc@D577254E yc]$ which java
/usr/bin/which: no java in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/yc                                 /bin)
And I added the java path to .bash_profile.
the path it installed itself in is /usr/java/j2re1.4.1_01

When running the Limewire installer it tells me that I have to install a VM before installing Limewire.
I don't care too much about Limewire but I'd like to get this java runtime going.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main » Sat Feb 15, 2003 3:17 pm

You need to add "/usr/java/j2re1.4.1/bin" to your PATH (don't leave the "/bin" off the end) or create links to the java executables in your /usr/bin:

# cd /usr/bin
# ln -s /usr/java/j2re1.4.1/bin/* .

Ice9
guru
guru
Posts: 577
Joined: Thu Jan 09, 2003 12:40 am
Location: Belgium
Contact:

Post by Ice9 » Sat Feb 15, 2003 3:44 pm

that did it, thanks void!

Post Reply