centos调用组件打开工作空间报错

0 投票
使用产品:iobjectsjava-9.0.1-15628-65435-linux64-all 操作系统:centos7 x64
数据类型:文件型

代码:

//1.打开指定工作空间
        Workspace workspace = new Workspace();
        WorkspaceConnectionInfo workspaceConnectionInfo = new WorkspaceConnectionInfo();
        workspaceConnectionInfo.setType(WorkspaceType.SMWU);
        workspaceConnectionInfo.setServer(workspacePath);
        boolean open = workspace.open(workspaceConnectionInfo);
        //打开工作空间返回值true为成功
        if (!open) {
            return AjaxResult.error("打开工作空间失败!");
        }

错误:

an exception caught at Environment.loadLibrary(), program will continue running.
java.lang.UnsatisfiedLinkError: no WrapjMObjects in java.library.path

Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: com.supermap.data.WorkspaceNative.jni_InitPlugins()V

org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.UnsatisfiedLinkError: com.supermap.data.WorkspaceNative.jni_InitPlugins()V
8月 18 分类:  55次浏览 | 用户: hxp20645 (9 分)

1个回答

0 投票
您好,看报错是环境变量的问题,请echo $PATH  和 echo $LD_LIBRARY_PATH打印看下有没有组件bin的路径,没有的话还请编辑 /etc/profile 配置环境变量,然后  source /etc/profile 让变量生效
8月 19 用户: 张亮 名扬四海 (2,463 分)

你好,打印了一下是有的

...