I am using MKS Java API to creat Sandbox/drop Sandbox for a project. The code works fine in my local (win7+Integrity10 client+hotFix s100000000-022). However, when I tested in an AIX server (the server has Intergrity10 client +HotFix s100000000-022), the same code always throw exception. I tested si command from aix command line and it worked fine. All enviornment varibles are set as builder guide/user guide suggested.
By the way, I tested si command from AIX command line and the si command worked without any issue.
The following is the exception:
java.lang.UnsatisfiedLinkError: Cannot load apiclientrunner
The following is my code:
cmdRunner = ipf.createLocalIntegrationPoint(4,11).getCommonSession().createCmdRunner();
// Set only to override client defaults
Command cmd = new Command(Command.SI, "createsandbox");
Thanks in advance if anyone can help out here!
I think that it has something to do with using local integration on a non-Windows system. Have you tried using a direct connection to the server instead?
cmdRunner = ipf.createLocalIntegrationPoint(4,11).getCommonSession().createCmdRunner
cmdRunner = ipf.createIntegrationPoint(mks_host,mks_port,4,11).createSession(mks_username,mks_password).createCmdRunner
I know this is might not be a suitable solution, but it might help you out in cases where your code is sitting on a server.
Thanks Rich for the suggestion. Yes, if usr server intergrition point, the code work. It at least approve that the issue is related to the Integrity client component.
However, our project do need to be able to download the files to the local unix server. So, I have to use localIntegritonPoint.
Do you or anyone else know if this is a known defect in MKS Client unix version?
Maybe you could have a look at the JENKINS Plugin sources
It shows so goog example on your use case:
+ use server integration point
+ checkout file to local machine