I have a question
From the archives of java api, which you need to download and install??
All valid for linux.
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