Network analyst - Create Costum Evaluator with Java

3245
1
04-16-2015 01:07 PM
OmerHaimovich
New Contributor

Hi ,

As part of the project i'm working on, me and my fellows created an extension that uses network analyst to solve routes.We were also needed to create a custom evaluator for the solve route operation.

Our custom evaluator implemented ITimeAwareEvaluator. pretty much like this example:

http://www.arcgis.com/home/item.html?id=5557e3c3b8c047e68e5632229c102476

We wrote the extension and the evaluator in .Net.

The projects compiled into dll's and all we had to do was to register the evaluator with "ESRIRegAsm.exe".

Today we are trying to change the extension and the evaluator to Java.

The same interfaces that our custom evaluator implemented exist in java but it compiles into jar

and I can't register it through ESRIRegAsm.exe.

Anyone knows how to create custom evaluator in Java and how to register it to the server and desktop?

Thanks in advance

0 Kudos
1 Reply
FreddieGibson
Occasional Contributor III

Did you try deploying the jar using one of the following deployment methods?

  • Copy the .jar file to the ARCGISHOME/java/lib/ext folder. This ensures that the extension gets automatically registered with ArcGIS the next time the application is started. This is a Java-friendly way and a recommended practice for deploying all ArcGIS extensions.
  • Explicitly register the .jar file with ArcGIS either through the API exposed on the com.esri.arcgis.interop.extn.RegTool class or through the "regtool.bat"/"regtool.sh" script available under ARCGISHOME/java/tools.

Utility Objects

http://resources.arcgis.com/en/help/arcobjects-java/concepts/engine/index.html#//00010000051r000000

0 Kudos