首页 / 浏览问题 / 组件GIS / 问题详情
java.lang.UnsatisfiedLinkError
2EXP 2019年11月12日
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: com.supermap.data.EnvironmentNative.jni_GetCurrentCulture()Ljava/lang/String;
    at com.supermap.data.EnvironmentNative.jni_GetCurrentCulture(Native Method)
    at com.supermap.data.Environment.getCurrentCulture(Unknown Source)
    at com.supermap.data.Environment.<clinit>(Unknown Source)
    at com.supermap.data.InternalHandle.<clinit>(Unknown Source)
    at com.hy.main.MainFrame$1.windowOpened(MainFrame.java:93)
    at java.awt.Window.processWindowEvent(Window.java:2051)
    at javax.swing.JFrame.processWindowEvent(JFrame.java:305)
    at java.awt.Window.processEvent(Window.java:2013)
    at java.awt.Component.dispatchEventImpl(Component.java:4889)
    at java.awt.Container.dispatchEventImpl(Container.java:2295)
    at java.awt.Window.dispatchEventImpl(Window.java:2746)
    at java.awt.Component.dispatchEvent(Component.java:4711)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
    at java.awt.EventQueue$4.run(EventQueue.java:731)
    at java.awt.EventQueue$4.run(EventQueue.java:729)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

1个回答

您好,根据您的报错信息应该是环境配置的问题,请检查以下几点:1.环境变量Path里面Java组件的路径是否在变量的最前面
2.环境变量中的路径是否是工程所引用的jar包的路径
3.可以试着运行以下Workspace workspace = new Workspace()是否会报错
9,232EXP 2019年11月13日
m_workspace = new Workspace();

也报错:
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: com.supermap.data.EnvironmentNative.jni_GetCurrentCulture()Ljava/lang/String;
    at com.supermap.data.EnvironmentNative.jni_GetCurrentCulture(Native Method)
    at com.supermap.data.Environment.getCurrentCulture(Environment.java:709)
    at com.supermap.data.Environment.<clinit>(Environment.java:53)
    at com.supermap.data.InternalHandle.<clinit>(InternalHandle.java:19)
    at com.supermap.samplecode.conversion.MainFrame.<init>(MainFrame.java:213)
    at com.supermap.samplecode.conversion.MainFrame$6.run(MainFrame.java:202)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
 

...