LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   setting up java runtime (https://www.linuxquestions.org/questions/linux-newbie-8/setting-up-java-runtime-31123/)

FloatRed 09-24-2002 04:00 PM

setting up java runtime
 
I downloaded the rpm.bin from sun and installed the package. Now when I type:

/usr/java/j2re1.4.0_02/bin/java

I get the following error message:

Error: failed /usr/java/j2re1.4.0_02/lib/i386/client/libjvm.so, because libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

What does that mean? Is the installation missing some files that are supposed to be in the lib directory? Do I have to go hunting for these now?

Thanks.

doublefailure 09-24-2002 05:44 PM

first off, u'll be better off with tar.gz than rpms many times

your system is missing this file
libstdc++-libc6.1-1.so.2

go to www.rpmfind.net
and type that file
or libstdc
or libc6.1
until you find one rpm(--;) that contains that file
and install it

GL

FloatRed 09-24-2002 06:07 PM

I am bookmarking that site.

Except one problem. When I tried to install that package it told me, I had a newer version. I actually have the

libstdc++-libc6.2-2.so.3

file. So now what happens? Can I not run the jre if it is looking for an old file? Can I tell it somehow to use the newer version?

neo77777 09-24-2002 08:10 PM

find libstdc++-libc6.2-2.so.3 on your system
it is most probably under
/usr/lib and make a symlink
ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2
and run
/sbin/ldconfig
and you should be fine

FloatRed 09-24-2002 08:43 PM

Fantastic.

And plus I understand the man pages for ln.

Thanks again.


All times are GMT -5. The time now is 05:33 AM.