Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Exception in thread "main" java.lang.UnsatisfiedLinkError:
goth
hi,
i get this error
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Client\NiSource\Mysource\Shared\lib\cssdk\cssdk.dll: Can't find dependent libraries
i'm trying to run a sample java code that connects to the teamsite server with the below code
try {
String host = "SWNHAMAPTSS04";
String user = "userid";
String password = "passws";
String role = "Master";
String cfgPath = "C:\\Client\\NiSource\\workspace\\MySourceCleanup\\config\\cssdk.cfg";
String factory = "com.interwoven.cssdk.factory.CSLocalFactory";
Properties props = new Properties();
props.setProperty("cssdk.cfg.path", cfgPath);
props.setProperty("com.interwoven.cssdk.factory.CSFactory", factory);
// get factory (local or remote)
CSLocalFactory csLocalFactory = (CSLocalFactory) CSLocalFactory.getFactory(props);
// get the client object
CSClient client = csLocalFactory.getClient(user,role,password,Locale.getDefault(), "",host);
System.out.println("Connection ");
// get the workarea object
CSWorkarea wa = client.getWorkarea(new CSVPath("//SWNHAMAPTSS04/NiSourceStore/main/PlumtreePortal/Test-News/WORKAREA/development/news/Welcome/announcements/2010"),true);
// form the array of files to be submitted
CSFile strFile = wa.getFile(new CSAreaRelativePath("20100616WC_03.html "));
String st = strFile.getOwner().getName();
System.out.println("Document Owner : "+st);
// call submit method
}
catch (Exception e) {
e.printStackTrace();
}
}
any help will be greatly appreciated.
thnks
Jai
Find more posts tagged with
Comments
There are no comments yet