java snippet seems to execute twice (on reset, and on execution)

I want to start up a Tableau session as part of a NIME workflow, while allowing the workflow to continue. 

I am using a java edit variable node to do this, vai a Runtime import. I have attached a screenshot of the snippet code I'm using. The code works, but I find that each time the node is reset, the content executes again, so I get two Tableau sessions initiiated each time.

Is there a way to prevent this duplication? 

David

 

 

There is an option in the dialog for something like compile at configure  - if you uncheck that I think your  problem will be solved

Steve

found it - run only on execution. 

Many thanks

David