AnsweredAssumed Answered

Problem in toolbox execution in arcobjects

Question asked by Sinumcc on Apr 25, 2018
Latest reply on Apr 25, 2018 by Sinumcc

I'm using arcobjects in Java


I'm trying to execute the MeanCenter of a set of points in file "focus.shp".



GeoProcessor gp = null;
gp = new GeoProcessor();

MeanCenter mc = new MeanCenter();

// Execute the server tool by reference
geoResult = gp.execute(mc, null);



I'm getting the next error:


Executing: MeanCenter D:/borrar\j_copy_focos.shp D:/borrar\mean_center.shp # # #
Start Time: Wed Apr 25 13:30:39 2018
Failed to execute. Parameters are not valid.

Failed to execute (MeanCenter).
Failed at Wed Apr 25 13:30:39 2018 (Elapsed Time: 0,00 seconds)



However, when I execute the same command in python, the tool works perfectly:


arcpy.stats.MeanCenter(r"D:/borrar/j_copy_focos.shp", r"D:/borrar/mean_center.shp", None, None, None)


Any Idea?


Thanks in advance!######