Solved! Go to Solution.
Hello, I am trying to run HillshadeCommand.java and I have this error, any clue ?
Thanks
the error:
Starting HillshadeCommand - An ArcObjects SDK Developer Sample
Could not initialize an Engine or Basic License. Exiting application.
This sample seems to only be looking for an Engine deployment or development license ...so if you don't have an Engine license installed on the Dev machine, running the compiled sample jar will tell you this.
If you have Eclipse, you can install the ArcObjects SDK plugin, open the source code for this sample, and change it to check for an Advanced, Standard Desktop license instead.
Hope this helps?
Hi Eric,
I changed the licence and that was resolved. But, I think the problem is in reading raster data.
Yes, I have Eclipse. Can you please send me the link to download and install ArcObjects SDK plugin ?
I have licence for ArcGIS Desktop only not for engine
This is the error I get:
Starting HillshadeCommand - An ArcObjects SDK Developer Sample
devKitHome: null
inDataPath: nulljava\samples\data\raster
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
start Here
inDataPath: C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster
inDataName: dem1
inDataPath: C:\Program Files (x86)\ArcGIS\DeveloperKit10.2\java\samples\data\raster
inDataName: dem1
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
AutomationException: 0x80041018 - Failed to open raster dataset in '"esriDataSourcesRaster.GdalRasterDataset"'
at com.esri.arcgis.datasourcesraster.RasterWorkspace.openRasterDataset(Unknown Source)
at HillshadeCommand_.createHillshade(HillshadeCommand_.java:203)
Thanks
Feras
Hello,
Any idea how to install the ArcObjects SDK plugin ? the link for it
Thanks