Error: 发生Could not load native libraries, ArcGIS/bin should be added to the system PATH environment variable错误
文章编号 : 35345
软件: ArcGIS Engine Developer Kit 9.3, 9.3.1 ArcGIS Engine Runtime 9.3, 9.3.1 ArcGIS Server 9.3, 9.3.1
操作系统: N/A
软件: ArcGIS Engine Developer Kit 9.3, 9.3.1 ArcGIS Engine Runtime 9.3, 9.3.1 ArcGIS Server 9.3, 9.3.1
操作系统: N/A
1 个回复
易智瑞技术支持
赞同来自:
"Could not load native libraries. ArcGIS/bin should be added to the system PATH environment variable.
java.lang.UnsatisfiedLinkError: no ntvauth in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)"
原因: 如果没有调用ServerInitializer.initializeServer方法就连接到ArcGIS Server可能会报这个错误。
解决方法: 1. 如果要连接到ArcGIS Server,调用以下的方法:
ServerInitializer.initializeServer("DOMAIN", "Username", "password");
如果用户是一个本地用户,那么将DOMAIN值设为该用户所在的主机名。这个方法需要在ServerConnection.connect(machine)方法之前调用,所有线程中的ServerConnections都会使用这个认证去连接ArcGIS Server。
2. 如果需要使用多个用户名密码连接到ArcGIS Server,则在每个连接前调用ServerInitializer.initializeServer()方法,然后调用带四个参数的ServerConnection.connect方法。
创建时间:2008-08-08
最近更新: 2010-06-17
【原文链接】
http://support.esrichina.com.cn/2008/0808/931.html
要回复问题请先登录或注册