Translations: Sample Java Programs/21/en
From ArdorDocs
// start the node, so make sure it is not already running or you'll receive a BindException
try { InProcessApiCalls inProcessApiCalls = new InProcessApiCalls(); inProcessApiCalls.submit(); } finally { Nxt.shutdown(); // shutdown the node properly before closing the Java process } }