Select to view content in your preferred language

Hillshade.java error messages

5487
22
Jump to solution
09-22-2014 01:19 PM
FerasObeidat
Deactivated User

hi all,

while start running HillshadeCommand in eclipse  I got these error messages, even-though there was no error in the code :

Starting HillshadeCommand - An ArcObjects SDK Developer Sample

java.lang.UnsatisfiedLinkError: no ntvinv in java.library.path

Could not load native libraries.

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.initializeEngine(Unknown Source)

  at HillshadeCommand.main(HillshadeCommand.java:45)

0 Kudos
22 Replies
ShriramBhutada1
Deactivated User

Hi Feras,

With help of one of my collegue, Kwasi A, I was able to run the sample successfully.. makes sure you have "C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster" folder on your system.

I'll send the zipped project as well.

"

Starting HillshadeCommand - An ArcObjects SDK Developer Sample

C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster

Creating output directory - C:\Users\shri7493\arcgis_sample_output

Using default Azimuth value 315.0 and Altitude 45.0

Opening raster workspace C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster\dem1 and getting its dataset ...

Creating hillshade data ...

Done.  Output files created in C:\Users\shri\arcgis_sample_output\hillshadecommand

App Data = C:\Users\shri\AppData\Local

Log file path = C:\Users\shri\AppData\Local\ESRI\Engine10.2\Java\Log

"

0 Kudos
FerasObeidat
Deactivated User

Hello Shriran,

Thanks!

however, I don't have DeveloperKit10.2 under ArcGIS

I searched for it and I didn't find this folder, under ArcGIS I have: C:\Program Files (x86)\ArcGIS\Desktop10.2 which contains other folders like ArcGlobeData, arcpy, ...Attached is a snapshot of what I have under this

0 Kudos
ShriramBhutada1
Deactivated User

Did you install ArcObjects Java SDK? Once you install that then you can see the folder

.btw Special thanks to Kwasi Asante‌, he helped me run the sample.

~Shriram

0 Kudos
ShriramBhutada1
Deactivated User

DeveloperKit10.2 folder should be under C:\Program Files (x86)\ArcGIS.

~Shriram

0 Kudos
FerasObeidat
Deactivated User

Then I would be grateful if you guide me on how to install the developer kit. I saw some sites but was not clear for me

my phone is 519 661-2111 ext 82253

Many thanks!

Feras

0 Kudos
FerasObeidat
Deactivated User

Hi Shriram,

I installed jre6 insteadlooks better and I only have one error at the moment that's :

Starting HillshadeCommand - An ArcObjects SDK Developer Sample

Could not initialize an Engine or Basic License. Exiting application.

Any clue?

Thanks

Feras

0 Kudos
ShriramBhutada1
Deactivated User

Feras,

I assume that you have desktop license.

change the license binding to deskto =>

esriLicenseProductCodeAdvanced

from

esriLicenseProductCodeEngine)

~Shriram

0 Kudos
FerasObeidat
Deactivated User

Hello Shriram,

Can you please send me the zipped file that contains raster files ?!

I now have this error:

Starting HillshadeCommand - An ArcObjects SDK Developer Sample

devKitHome: null

inDataPath: nulljava\samples\data\raster ( I changed the path as follows:)

inDataPath: C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster

Creating output directory - C:\Users\IBM_ADMIN\arcgis_sample_output

Using default Azimuth value 315.0 and Altitude 45.0

Opening raster workspace C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster\dem1 and getting its dataset ...

Error: AutomationException: Failed to open raster dataset

can I get the contact for @KwasiAsante

Thanks

Feras

0 Kudos
FerasObeidat
Deactivated User

This the contents of raster folder on my disk, is that similar to what you have (attached here)?

Untitled.png

Kwasi Asante

0 Kudos
FerasObeidat
Deactivated User

This the contents of raster folder on my disk as attached , is that similar to what you have?

Untitled.png

0 Kudos