I am trying to execute a jar file via Jenkins on a slave node. After the jar is executed, jenkins hangs and does not stop running. My jar is on a windows machine, the slave node is started as Java Web Start agent.
I added System.exit(0);
and it seems to be working.