首页 / 浏览问题 / 组件 / 问题详情
objectjava开发错误
mss13811...  (15分)  才疏学浅
9月26日, 2021
java.lang.UnsatisfiedLinkError: no Wrapj600 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1865)
    at java.lang.Runtime.loadLibrary0(Runtime.java:870)
    at java.lang.System.loadLibrary(System.java:1119)
    at com.supermap.data.Environment.LoadWrapJ(Unknown Source)
    at com.supermap.data.Toolkit.<clinit>(Unknown Source)
    at com.supermap.data.Workspace.<clinit>(Unknown Source)
    at com.supermap.extend.base.SmBasicClass.InitalBasicClass(SmBasicClass.java:98)
    at com.supermap.extend.initial.InitialWorkSpace.init(InitialWorkSpace.java:57)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5349)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
九月 26, 2021 12:00:35 下午 org.apache.catalina.core.ApplicationContext log
严重: StandardWrapper.Throwable
java.lang.UnsatisfiedLinkError: com.supermap.data.LicenseNative.jni_New()J
    at com.supermap.data.LicenseNative.jni_New(Native Method)
    at com.supermap.data.License.<init>(Unknown Source)
    at com.supermap.data.Toolkit.verifyLicense(Unknown Source)
    at com.supermap.data.Workspace.<clinit>(Unknown Source)
    at com.supermap.extend.base.SmBasicClass.InitalBasicClass(SmBasicClass.java:98)
    at com.supermap.extend.initial.InitialWorkSpace.init(InitialWorkSpace.java:57)
    at javax.servlet.GenericServlet.init(GenericServlet.java:158)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1282)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1195)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1085)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5349)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5641)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
问题关闭原因: 换了一个objectjava就好了太奇怪了

1个回答

你好,1.您的设备是否有可用的许可呢?2.环境变量也是有问题的。可以用许可中心来看您的许可信息是否可用,环境变量配置参考:

Windows:
    eclipse开发:将组件解压后的bin目录 添加到系统环境变量path 中,并且将其移动至最顶层(jdk之前);讲组件jar引到工程中;
    ideal开发在上面的基础上需要额外在项目需要在Run configuration里面的Environment variables里面设置path=Java组件的bin路径()
    如果是开发web工程,需要在tomcat里面去设置对应的Java组件环境变量,参考博客地址:https://blog.csdn.net/supermapsupport/article/details/51919744
Linux:
    完整包:要以 root 用户 登录,并切换当前路径为产品的Tools 目录,执行:./SetEnv.sh  再执行 source /etc/profile 使环境变量生效
    精简包:以 root 用户 登录,gedit /etc/profile 编辑环境变量,添加 export PATH=$PATH:组件bin目录路径   export  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:组件bin目录路径   ;添加完后执行 source /etc/profile 使环境变量生效
张亮  (2,842分)  名扬四海
9月26日, 2021
按照这个操作全部都弄了还是这样的错误
1.path最前边加了D:\supermap_iserver_8.0.1_win64_zip1\support\objectsjava\bin

2.tomcat envirement增加了path,D:\supermap_iserver_8.0.1_win64_zip1\support\objectsjava\bin

run as中也配置了就是不行
...