Select to view content in your preferred language

ArcMap/ArcCatalog Java Addin Workflow

575
2
10-08-2010 07:04 AM
AverillCate_Jr
Emerging Contributor
I have had a few issues trying to develop an addin in Java.  The main issue is the code-modification testing cycle.  I can initialize a new Java Addin app without problem.  Then start ArcMap and connect the Addin via the customization tools.  However, if I stop ArcMap to make changes to the code I find that I have to got to the Addin Manager and remove the Addin, restart ArcMap, the use the customization tool to enable the Addin again.  This works most of the time, but not always.  Any suggestions on what do.  Thanks for any help.
0 Kudos
2 Replies
StevenRozic
Emerging Contributor
When I was working with add-ins and testing them I found that re-deploying directly from Eclipse was all I had to do.

You might also wish to try changing the version number along with your changes. You are allowed to put in decimal numbers - e.g. 1.1, 1.2, and so on.

Hope this helps, but sometimes you might just need to uninstall the add-in and re-deploy it.

-=Steve
0 Kudos
TomSchuller
Frequent Contributor
Hy,
I also could deploy the new add-in without removing.
I just have to copy the new addin to <MyDocs>\ArcGIS\AddIns\

For the very lazy people (like me), you can take a look at JRebel:
http://www.zeroturnaround.com/jrebel/
You don't need to copy or even restart ArcMap while changing your classes.
Do configure ArcMAP to use JRebel, you have to set the "javaagent" parameter. The "noverify" doesn't work with ArcMAP (see JRebel documentation).

Best regards,
Tom
0 Kudos