In most cases you need Java API version matched with NetXMS server version you are plan to connect to. And there are no need to install it in any way, just download jar files and use in your project.
Best regards,
Victor
Best regards,
Victor