Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I include RTI nddsjava library in a jar with dependencies?

I am working on a Java project set up with Maven. I have set up my pom to include all dependencies and create a jar with dependencies using the appropriate maven plugin. The RTI nddsjava library has been loaded onto my maven repository server, but for some reason, when I try to load classes in nddsjava (such as com.rti.dds.domain.DomainParticipant). Any suggestions on how I can create a jar with all dependencies completely self-contained that runs?

like image 647
jfoo Avatar asked Oct 21 '22 07:10

jfoo


1 Answers

Are you running into problems during runtime or packaging? Your statement above is the symptoms of the problem that you're running into.

The Java binding for RTI Connext relies on 3 native libraries. So, if you're running into runtime issues, then you'll need to package these libraries as part of your deliverable. Also, these libraries will need to be made available on the dynamic library loading path (PATH on Windows, LD_LIBRARY_PATH on *nix, DYLD_LIBRARY_PATH on Mac OS X).

like image 183
Ken Brophy Avatar answered Oct 24 '22 01:10

Ken Brophy