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