issue: Cannot open message catalog LIBTUX_CAT
720306Sep 1 2009 — edited Sep 9 2009Hello,
I'm developing a JAVA client to access the tuxedo server, but the server doesn't support the jolt method, so I use java jni to access a Dynamic-Link Library that can invoke the tuxedo server.
I used the linux gcc to build the .so file as follows,
gcc -I/tuxedo/include -L/tuxedo/lib -m32 -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -c CrmCallback.c
g++ -shared -I/tuxedo/include -L/tuxedo/lib -m32 -ltux -lbuft -lfml -lfml32 -lengine -ldl -lpthread -Wl,-soname,libCrmCallback.so -o libCrmCallback.so CrmCallback.o
but when I execute the file through the JAVA program, the message posted as follows:
tpinit error,tperrno=12,errnostr=NLS:4: Cannot open message catalog LIBTUX_CAT, set 1, num 1322; check TUXDIR=/tuxedo, LANG=C
I tried to use the same method in windows that is to build a .dll file to access tuxedo server,it runs perfectly.
BTW,the server is on the linux system.
I googling for a while but could not get a clue to solve this.
Any help appreciated.
Thanks.
Edited by: user9524818 on 2009-9-1 上午6:25
Edited by: user9524818 on 2009-9-1 下午6:34