Thursday, 15 July 2010

java - Calling C++ From JMS with JNI -



java - Calling C++ From JMS with JNI -

i'm trying phone call sleuth kit c++ framework through jni wrapper jms messagelistener. i'm getting error

java.lang.unsatisfiedlinkerror: /tmp/libtsk_jni.so: libtsk.so.10: cannot open shared object file: no such file or directory

i tried coping libtsk_jni.so /tmp no difference. can in java console application. error?

public void onmessage(message message) { seek { string imagepath = "uploads/cfreds001a001.dd"; try{ sleuthkitcase sk = sleuthkitcase.newcase(imagepath + ".db"); } grab (tskcoreexception ex) { } } grab (jmsexception ex) { logger.getlogger(workerbean.class.getname()).log(level.severe, null, ex); } grab (interruptedexception ex) { logger.getlogger(workerbean.class.getname()).log(level.severe, null, ex); }

attempting utilize native methods code running in java ee container not allowed standard , may cause undefined behavior. see javaworld article august 2000 "programming restrictions on ejb", still true today far know.

depending on java ee container, may in fact able work. may help set libtsk_jni.so in scheme library directory or edit server's start script set ld_library_path environment variable.

java c++ java-ee jni jms

No comments:

Post a Comment