After installing jdk-6u2 for Linux from Sun Microsystems’ site, when I ran javaws it gave strange error that libstdc++.so.5 not found and it aborted. I searched for libstdc++.so.5 and it was not there in /usr/lib/ as expected. That implied something is wrong. As I installed jdk-6u2 from rpms, it should have given dependency error for the particular library, bit it didn’t. After searching for sometime I found that libstdc++.so.5 is provided by compat-libstdc++-33 package, which was not installed on my system. After I installing the particular package, everything worked fine.
It worked fine for Fedora Core 6 because compat-libstdc++-33 is provided by default in Fedora Core 6.
But its kind of strange that if libstdc++.so.5 and hence compat-libstdc++-33 is required for jdk-6u2 then why ‘rpm -ivh’ didn’t give dependency error.
I did face the same issue . What i fount was thw lib was missing.
so,
yum install compat-libstdc++*
solved my problem.
That worked for me too to install Java 5 on Fedora 11, thanks 🙂
yum install compat-libstdc++*
Cool 🙂 I wonder why didn’t they fix it already.
@Jayasanker
yum install compat-libstdc++* and installing compat-libstdc++-33 from rpm is one and the same thing. 😀
I am facing the same problem. checked /usr/lib, it has libstdc++.s.6.
Still the facing problem
If you have 64bit operating system, try looking /usr/lib64/ .