Hello,
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
at com.mks.connect.ClientCmdRunnerImpl.(ClientCmdRunnerImpl.java:53)
at com.mks.connect.UserApplicationSessionImpl._createCmdRunner(UserApplicationSessionImpl.java:546)
at com.mks.connect.CmdRunnerCreatorImpl.createCmdRunner(CmdRunnerCreatorImpl.java:90)
=================================================================================
The following is my code:
cmdRunner = ipf.createLocalIntegrationPoint(4,11).getCommonSession().createCmdRunner();
// Set only to override client defaults
cmdRunner.setDefaultHostname(mks_host);
cmdRunner.setDefaultPort(mks_port);
cmdRunner.setDefaultUsername(username);
cmdRunner.setDefaultPassword(password);
Command cmd = new Command(Command.SI, "createsandbox");
cmd.addOption(new Option("R"));
cmd.addOption(new Option("recurse"));
cmd.addOption(new Option("project",project));
cmd.addOption(new Option("scope","anyrevlabellike:"+lable));
cmd.addOption(new Option("Y"));
cmd.addOption(new Option("devpath",devpath));
cmd.addOption(new Option("cwd",cwd));
cmdRunner.execute(cmd);
Thanks in advance if anyone can help out here!