FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I got the following message after I installed and tried to run Sun Microsystem's Java 1.3 under Fedora 4 (This error occurs when I try to run the 'javac' or 'java' commands):
Unable to load native library: /usr/java/j2sdk1.3.0_05/jre/lib/i386/libjava.so: symbol __libc_waitpid, version GLIBC_2.0 not defined in file libc.so.6 with link time reference.
I was told that this problem happens because Java 1.3 is looking for a 2.0 release of glibc, which means I needed to install the compat-libgcc-296 package.
I downloaded compat-libgcc-296-2.96-132.fc4.i386.rpm and ran:
rpm -i compat-libgcc-296-2.96-132.fc4.i386.rpm
to install it. And then ran:
/sbin/ldconfig
to update the library with the latest links. However, I still receive the same error message when I try to run 'java'. Is there something else I'm missing with the rpm install? Are there any additional configurations I need to make to get GLIBC to work on Fedora as the default package?
I also ran the following command to find out all the libraries libjava.so is looking for:
linux-gate.so.1 => (0x00a4f000)
libjvm.so => not found
libverify.so => not found
libnsl.so.1 => /lib/libnsl.so.1 (0x00f7000)
libd1.so.2 => /lib/libd1.so.2 (0x00b29000)
libc.so.6 => /lib/libc.so.6 (0x004d7000)
/lib/ld-linux.so.2 (0x0045e000)
Do these lines make sense to anybody? Any idea why Java 1.3 won't work on Fedora from looking at the output above? I am still quite new to Linux, so am really not sure how to proceed from here.
Would very much appreciate it if someone could point me in the right direction.
Thanks!
Phil
Last edited by stinky_tofu; 12-12-2005 at 08:44 AM.
JDK 1.5 is probably the best version to use because some java apps like LimeWire and Azureus work better with it. Also you should not install Suns java on FC4 using rpms because it overwrites some java files needed and shipped by Fedora Core 4.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
You might want to re-configure your default java configuration then. I wrote these for a CentOS forum but they should work for you, just modify the commands for your version of java;
This is done as root or equivalent.
First remove /var/lib/alternatives/java file by typing;
rm /var/lib/alternatives/java
When asked press the 'y' key,
Now to create the new (corrected) alternatives file for java type
the following commands as root;
Enter to keep the current selection[+], or type selection number:
Type: <choose 1 or 2>
In the example above java is already configured correctly [*+ 2] to
use Sun's Java, no changes are needed, just press the Enter key here.
If you have been following the instructions then you should have
the same results (version numbers may be sightly different).
Now type; /usr/sbin/alternatives --display java
You should see for example;
java - status is manual.
link currently points to /usr/java/j2re1.5.0_06/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1
/usr/java/j2re1.5.0_06/bin/java - priority 2
Current `best' version is /usr/java/j2re1.5.0_06/bin/java.
Next you might want to create (or edit) /etc/profile.d/java.sh
file, example below;
Thanks, but I am trying to install Java 1.3 not version 1.5. The reason I need Java 1.3 is for backwards compatibility with some old code that's been handed down to me.
Never mind though, I managed to get Fedora up and running with Java 1.3.1.
Actually, I'm sorry to say there really wasn't any big resolution to the problem. I was trying to install Java 1.3.0, but couldn't get it up and running. In the end I downloaded and installed Java 1.3.1 and it worked perfectly, without any problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.