Library not found: tibrvj

I run a Java application on a Linux server using Tibco RV and I get the following error:

TibrvException[error=901,message=Library not found: tibrvj]

What causes this problem?

I have already added the lib path containing *.so, in LD_LIBRARY_PATH, but still the same result.

UPDATE:

I am currently added <MyApp>/libs/tibrvj.jarto classpath. Tibrvj.jar was copied from a Windows environment to a Linux box where I run my application. I removed this from the classpath and added another link <TibcoDirectory>/libs/tibrvj.jarand it fixed the problem. They have different sizes with the previous file, and there is probably a difference between the one being copied from Windows and the one currently located on Linux. Can someone explain why this is so?

+5
source share
5 answers

I had the same problem and fixed it by following these steps:

  • The tibrvj.jar file is present in the classpath of my application
  • The tibrvj.dll file is present through the java library. This file is usually located in the bin directory in the Tibco Rendezvous home directory (for example, C: /tibco/tibrv/8.2/bin).
  • The installed version of Java is compatible with the installed version of tibco.

My environment:

  • Windows 7, 64bits
  • Tibco Rendezvous 8.2, 64bits
  • JDK 1.6u29, 64 bit.

Before that, I installed JDK 1.6u17 for the i586 processor, and when I tried to load the library using:

System.loadLibrary("tibrvj");

I got this error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\TIBCO\tibrv\8.2\bin\tibrvj.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform

This gave me the key to installing the correct version of Java.

+7
source

Did you load the library using System.loadLibrary ("tibrvj")? Have you added it to java.library.path?

+2

rchavarria DaveHowes , , IDE PATH (, , java.library.path) .

, IDE tibrv PATH.

0

Wrappers?

java.library.path, wrapper.conf? java.library.path, wrapper.conf, , .

0

:

java -Djava.library.path=/opt/tibco/tibrv/lib -cp {}.jar

LD_LIBRARY_PATH=/opt/tibco/tibrv/lib export LD_LIBRARY_PATH

**System.loadLibrary("tibrvj");**

0

All Articles