Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
CSSDK JNI question
cc96ai
I try to run the CSHelloWorld sample code in Server
and the properties file is
com.interwoven.cssdk.factory.CSFactory=com.interwoven.cssdk.factory.CSLocalFactory
cssdk.cfg.path=D:/Interwoven/TeamSite/cssdk/cssdk.cfg
I got the following error , it seems JNI problem, what else do I have to setup?
Exception in thread "main" com.interwoven.cssdk.factory.CSFactoryInitializationException: (Factory initialization failed)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:132)
at CSHelloWorld.main(CSHelloWorld.java:52)
Root cause:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.interwoven.cssdk.factory.CSFactory.getFactory(CSFactory.java:130)
at CSHelloWorld.main(CSHelloWorld.java:52)
Caused by: java.lang.UnsatisfiedLinkError: no cssdk in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.interwoven.cssdk.factory.jni.CSJNILoader.init(CSJNILoader.java:53)
at com.interwoven.cssdk.factory.CSLocalFactory.getFactory(CSLocalFactory.java:260)
... 6 more
Find more posts tagged with
Comments
KeithB
You probably sorted it by now, but someone else may find it useful...
Try adding:
-Djava.library.path=IW_HOME/cssdk when calling java
KeithB
Just to add to that, it's better to use LD_LIBRARY_PATH if applicable and also make sure IW_HOME/lib is included.