LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   error in running a java app in linux (https://www.linuxquestions.org/questions/linux-newbie-8/error-in-running-a-java-app-in-linux-279700/)

brainlesspinkey 02-09-2005 11:40 PM

Ok, so the problem seems to be with the java program itself, so you seem right that it is the .bin file. Also, it is a older version of java that you are using (which is my guess as to the problem now). Go to java.sun.com and download the jdk. I'd recomend version 1.4.2 (not 1.5 yet), because that is what most people have (that way you can stay compatable).

the rpm one is basically exactly like the bin one, except it just installs it along with your other rpm files, and puts links to the program in /usr/bin, and also makes it easy to uninstall. I personally like the bin one, because i can then install many versions of java, and then by changing my bashrc file, change what version of java I am currently using (because i compile my programs and test them on different java versions).

brainlesspinkey 02-09-2005 11:44 PM

Here is another thing to try:
I just found it on google, from http://forum.java.sun.com/thread.jsp...77&range=15&q=

Quote:

Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/j2sdk1.4.1_02/jre/lib/i386/libfontmanager.so: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

ok. the rest is easy. cwd to your lib-directory (for debian it's /usr/lib) and do a

# ln -s libstdc++-3-libc6.2-2-2.10.0.so libstdc++-libc6.1-1.so.2

(this is for debian woody, adapt the first argument to your own needs/distribution/lib-version)

and restart the tomcat.

for me everything works fine now. Good luck for you!

cheers,
t4l
This sounds exactly like your problem. Why don't you try that?

-pink


All times are GMT -5. The time now is 01:20 PM.