2 shaxiaozilove shaxiaozilove 于 2016.04.23 21:48 提问

Java+ArcObject运行出错 initializeVisualBeans 1C

说明:64位 Win7系统,eclipse是32位,JDK 是32位

本人初次接触 ARCObject JDK for Java,对Java有一定的了解,在eclipse中运行自带示例时,出现以下错误,请知道问题的给予指导,谢谢!

Could not load native libraries.java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path

java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.esri.arcgis.interop.NativeLoader.loadLibrary(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)
at arcgissamples.mapbean.AddLayerFileToMap.main(AddLayerFileToMap.java:322)
Exception in thread "ArcGIS VisualBean Mode STA Thread" java.lang.UnsatisfiedLinkError: com.esri.arcgis.interop.NativeObjRef.runMessagePump()V
at com.esri.arcgis.interop.NativeObjRef.runMessagePump(Native Method)
at com.esri.arcgis.interop.STAThread.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Could not load native libraries.
java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path
java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.esri.arcgis.interop.NativeLoader.loadLibrary(Unknown Source)
at com.esri.arcgis.interop.NativeObjRef.p(Unknown Source)
at com.esri.arcgis.interop.Dispatch.a(Unknown Source)
at com.esri.arcgis.interop.Dispatch.isNativeMode(Unknown Source)
at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
at com.esri.arcgis.interop.Dispatch.(Unknown Source)
at com.esri.arcgis.version.IArcGISVersionProxy.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.setVersionAndInitialize(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)
at arcgissamples.mapbean.AddLayerFileToMap.main(AddLayerFileToMap.java:322)
java.lang.RuntimeException: Failed to initialize native code invocation: null
at com.esri.arcgis.interop.NativeObjRef.p(Unknown Source)
at com.esri.arcgis.interop.Dispatch.a(Unknown Source)
at com.esri.arcgis.interop.Dispatch.isNativeMode(Unknown Source)
at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
at com.esri.arcgis.interop.Dispatch.(Unknown Source)
at com.esri.arcgis.version.IArcGISVersionProxy.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.setVersionAndInitialize(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)
at arcgissamples.mapbean.AddLayerFileToMap.main(AddLayerFileToMap.java:322)
Error in sample application: Can not use native code: Initialisation failed
java.lang.RuntimeException: Can not use native code: Initialisation failed
at com.esri.arcgis.interop.NativeObjRef.(Unknown Source)
at com.esri.arcgis.interop.Dispatch.createDispatch(Unknown Source)
at com.esri.arcgis.interop.Dispatch.(Unknown Source)
at com.esri.arcgis.version.IArcGISVersionProxy.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.version.VersionManager.(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.setVersionAndInitialize(Unknown Source)
at com.esri.arcgis.system.EngineInitializer.initializeVisualBeans(Unknown Source)
at arcgissamples.mapbean.AddLayerFileToMap.main(AddLayerFileToMap.java:322)
Exiting ...

请各位知道的兄弟指点。

2个回答

CSDNXIAOD
CSDNXIAOD   2016.04.23 21:52

为什么运行出错
用java命令在运行时候出错!
java笔记一:有关java HelloWorld dos环境下运行出错
----------------------biu~biu~biu~~~在下问答机器人小D,这是我依靠自己的聪明才智给出的答案,如果不正确,你来咬我啊!

devmiao
devmiao   Ds   Rxr 2016.04.23 23:44
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!