IFeatureWorkspace featureWorkspace=null;
IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory();
featureWorkspace = (IFeatureWorkspace)workspaceFactory.openFromFile(strFolder, 0);
每次运行到
IWorkspaceFactory workspaceFactory = new ShapefileWorkspaceFactory();
时,错误显示
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
java.lang.UnsatisfiedLinkError: no ntvauth in java.library.path
请高手指点一下,谢谢!
------解决方案--------------------
把 ArcGIS/bin 目录下的文件拷贝到 jdk的bin目录下试试
这个一般是找不到要用的dll 或者 dll的版本内写的引用路径 和 实际引用路径不一样