首页 / 浏览问题 / 组件GIS / 问题详情
iobjects java 11.2.0beat 报错,libawt_xawt.so: undefined symbol
14EXP 2024年07月26日
java.lang.UnsatisfiedLinkError: /res-center/iobjects/Bin/libWrapjAnalyst.so: /res-center/iobjects/Bin/libawt_xawt.so: undefined symbol: g_CMpDataID
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:331)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:197)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:139)
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2418)
        at java.base/java.lang.Runtime.load0(Runtime.java:852)
        at java.base/java.lang.System.load(System.java:2025)
        at com.supermap.data.Environment.b(SourceFile:508)
        at com.supermap.data.Environment.LoadWrapJ(SourceFile:438)
        at com.supermap.data.Environment.<clinit>(SourceFile:43)
        at com.supermap.data.InternalHandle.<clinit>(SourceFile:19)
        at cn.ccccltd.aide.graphic.core.controller.TestController.openWorkspaceSQL(TestController.java:33)

PATH和LD_LIBRARY_PATH 都设置了:

root@c91dea83ba6c:/res-center# echo $PATH
/res-center/iobjects/Bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

root@c91dea83ba6c:/res-center# echo $LD_LIBRARY_PATH
/res-center/iobjects/Bin:

环境检查:

root@8c96f6920352:/res-center/iobjects/Bin# ./predetection.sh
Check UGODIR...
Message: UGC dir:/res-center/iobjects/Bin
Message: m0001 Check UGO dir OK
Check SuperMapRoot....
Error:  e0001 Please  export SUPERMAP_ROOT environment
Check language environment...
Error:  e0004 Please export LC_ALL
Waring:  w0011 Please export LANG=zh_CN.gbk for GBK
Message: m0003 check language complete  
Check Wrapj...
Error:  e0010 not a relgar file libWrapj.so
Fatal:   f0010 Wrapj check doesn't pass
Fri Jul 26 11:57:37 CST 2024

1个回答

您好,环境检查还是有些问题,可以试试在bin目录下执行 ldd libWrapj*.so | grep not
865EXP 2024年07月26日
ldd libWrapj*.so | grep not 执行了没有返回内容
确认下libWrapj.so是否存在呢

ldd libawt_xawt.so | grep not 试试呢
...