I have a cheminformatics app for Cytoscape called chemViz that uses CDK. I was very excited to see that CDK was moving to use JNAInchi, but I have been unable to make it work with OSGi. The problem is that the native code is not on a classpath since it's part of the OSGi bundle. I can load native code using OSGi's implementation of System.loadLibrary(), which is bundle-aware, but System.load is not bundle aware, so JNA can't find the native modules. Do you have anyone who has successfully used JNAInchi in an OSGi setting?
I have a cheminformatics app for Cytoscape called chemViz that uses CDK. I was very excited to see that CDK was moving to use JNAInchi, but I have been unable to make it work with OSGi. The problem is that the native code is not on a classpath since it's part of the OSGi bundle. I can load native code using OSGi's implementation of System.loadLibrary(), which is bundle-aware, but System.load is not bundle aware, so JNA can't find the native modules. Do you have anyone who has successfully used JNAInchi in an OSGi setting?