Automation Exception in addToolbox()

1733
1
11-06-2012 01:05 PM
AvishekDutta
New Contributor
Hi,

I am trying to replicate the deletefeatures sample using ArcObjects and Java.

I have defined 4 classes a functiontool, a functionfactory, a toolRunner and a Main similar to the deletefeatures example.

When I run the toolRunner class as a java application from eclipse, i get

Adding Toolbox wstoolbox.tbx to the GeoProcessor...AutomationException: 0x80004005 - Unable to open solution registry key. in 'FrameworkEngine.PLTSUtils.1'
at com.esri.arcgis.geoprocessing.GeoProcessor.addToolbox(Unknown Source)
at custom.geoprocessing.watershed.WatershedModelerToolRunner.runTool(WatershedModelerToolRunner.java:195)
at custom.geoprocessing.watershed.WatershedModelerToolRunner.main(WatershedModelerToolRunner.java:175)


The deletefeatures sample is running fine. However as I do not have a JAR file for this new tool I am using the DeletefeaturesExt.jar. Can anyone shed some light on this?

Thanks,
Avi
0 Kudos
1 Reply
AvishekDutta
New Contributor
Hey,

I gave up trying to make my classes look like those in deletefeatures sample. Now I have just one class where I try to copy a raster from one folder to another.

I am still getting the Automation Exception but it says unspecified error, instead of the one before.

Any ideas?

Avishek
0 Kudos