我按照教程将iserver 下所有的jar全部添加到了path,我开发环境是idea java 1.8 ,我写了一个main方法测试是否可以连接数据库,运行之后报错。
java.lang.UnsatisfiedLinkError: no WrapjGeo in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.supermap.data.Environment.LoadWrapJ(Unknown Source)
at com.supermap.data.Environment.<clinit>(Unknown Source)
at com.supermap.data.InternalHandle.<clinit>(Unknown Source)
at com.ruoyi.supermap.jdbc.PostGisJdbc.main(PostGisJdbc.java:16)
java.lang.UnsatisfiedLinkError: no WrapjGeo in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1122)
at com.supermap.data.Environment.LoadWrapJ(Unknown Source)
at com.supermap.data.InternalHandle.<clinit>(Unknown Source)
at com.ruoyi.supermap.jdbc.PostGisJdbc.main(PostGisJdbc.java:16)
Exception in thread "main" java.lang.UnsatisfiedLinkError: com.supermap.data.DatasourceNative.jni_New(JI)J
at com.supermap.data.DatasourceNative.jni_New(Native Method)
at com.supermap.data.Datasource.<init>(Unknown Source)
at com.ruoyi.supermap.jdbc.PostGisJdbc.main(PostGisJdbc.java:16)