0

when trying to access userindex I have an exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: com.ibm.as400.access.UserIndexNativeImplILE.nativeOpen([B)I
    at com.ibm.as400.access.UserIndexNativeImplILE.nativeOpen(Native Method)
    at com.ibm.as400.access.UserIndexNativeImplILE.open(UserIndexNativeImplILE.java:51)
    at com.ibm.as400.access.UserIndex.open(UserIndex.java:429)
    at com.ibm.as400.access.UserIndex.findEntries(UserIndex.java:318)


AS400 system = new AS400(IP,USER,PASS);                               
UserIndex ui = new UserIndex(system, "/QSYS.LIB/LIB.LIB/USERINDEX.USRIDX");
ui.setMustUseNativeMethods(true);
ui.findEntries("MYKEY",ui.FIND_BETWEEN,1);

Any idea ?

Update: Webservice is running on a différent machine. Other commands like commandcall are working. If i comment out native methods, same exception

4

1 回答 1

0

我认为您没有在 iSeries 服务器上运行代码。正确的?它仅在直接在 iSeries 服务器上运行时才起作用。

于 2015-10-19T18:43:40.087 回答