Summary
Customer meets ?Library for Native Hostid Couldn't Be Loaded (-521,7024)? when running BasciExample in Java toolkit after enabling native hostid under LinuxQuestion
Customer meets ?Library for Native Hostid Couldn't Be Loaded (-521,7024)? when running BasciExample in Java toolkit after enabling native hostid under Linux# java BasicExample f4 1.0 license.lic
Exception in thread "main" java.lang.RuntimeException: Library for Native Hostid Couldn't Be Loaded (-521,7024)
at BasicExample.getVendorInfo(BasicExample.java:115)
at BasicExample.main(BasicExample.java:59)
Answer
1. Under Linux, check if path which contains liblmgr11.so is added into LD_LIBRARY_PATH
# echo $LD_LIBRARY_PATH
2. Verify if you are using same version of JDK as FNP C toolkit.
- If you are using 32-bit FNP C toolkit, make sure you installed 32-bit JDK
- If you are using 62-bit FNP C toolkit, make sure you installed 62-bit JDK
# echo $LD_LIBRARY_PATH
2. Verify if you are using same version of JDK as FNP C toolkit.
- If you are using 32-bit FNP C toolkit, make sure you installed 32-bit JDK
- If you are using 62-bit FNP C toolkit, make sure you installed 62-bit JDK
Additional Information
If you decompile flexlm.jar and open following source code"C:\Program Files (x86)\FNP\FlexNet Licensing Toolkit for Java 11.12.0.0\java\flexlm\com\macrovision\flexlm\VendorInfo.class"
you should be able to find the exception is thrown by Java API System.loadLibrary(str2);
http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#loadLibrary(java.lang.String)
I did some test and find the System.loadLibrary searchs liblmgr11.so in paths set into LD_LIBRARY_PATH.
------------
[root@RHEL6 examples]# echo $LD_LIBRARY_PATH
/fnp_11.12/java/examples
[root@RHEL6 examples]# mv liblmgr11.so liblmgr11.so.a
[root@RHEL6 examples]# java BasicExample f2 1.0 uncounted-eth.lic
Exception in thread "main" java.lang.RuntimeException: Library for Native Hostid Couldn't Be Loaded (-521,7024)
at BasicExample.getVendorInfo(BasicExample.java:115)
at BasicExample.main(BasicExample.java:59)
[root@RHEL6 examples]# export LD_LIBRARY_PATH=/fnp_11.12/x64_lsb
[root@RHEL6 examples]# java BasicExample f2 1.0 uncounted-eth.lic
f2 checked out (VS: null)
Hit return to check in:
[root@RHEL6 examples]# export LD_LIBRARY_PATH=
[root@RHEL6 examples]# java BasicExample f2 1.0 uncounted-eth.lic
Exception in thread "main" java.lang.RuntimeException: Library for Native Hostid Couldn't Be Loaded (-521,7024)
at BasicExample.getVendorInfo(BasicExample.java:115)
at BasicExample.main(BasicExample.java:59)
[root@RHEL6 examples]# export LD_LIBRARY_PATH=/fnp_11.12/x64_lsb/liblmgr11.so
[root@RHEL6 examples]# java BasicExample f2 1.0 uncounted-eth.lic
Exception in thread "main" java.lang.RuntimeException: Library for Native Hostid Couldn't Be Loaded (-521,7024)
at BasicExample.getVendorInfo(BasicExample.java:115)
at BasicExample.main(BasicExample.java:59)
[root@RHEL6 examples]# export LD_LIBRARY_PATH=/fnp_11.12/x64_lsb
[root@RHEL6 examples]# java BasicExample f2 1.0 uncounted-eth.lic
f2 checked out (VS: null)
Hit return to check in:
------------
Was this helpful?
Related Articles
Enabling Native HostID support with Java Based FNP applications. 19Number of Views Running Project Automation Java Class with 64-bit JDK Results in Error 3Number of Views Unable To License 64 Bit Version Of InstallAnywhere 2011 Or Later Using A Node Locked License File On 64 Bit Linux Operati… 7Number of Views Windows Loads a Different Library or Launches a Different Executable than was Intended by the Author of a InstallShield Se… 51Number of Views 'InstallShield.Tasks.InstallShield' Task Could not be Loaded when Building Using TFS 4Number of Views
Revenera Assistant
Online
Hi, I am Reva - Ask me anything.
Updates
No new updates
Chat
Home
Updates
/**/
Thanks for the feedback!
Your feedback has been saved.Rate this response:
1
2
3
4
5
Add Additional feedback ( Optional )
0/240
English
English
Language changed successfully
Something went wrong
Email sent successfully
Something went wrong
Case create successfully
Are you sure you want to cancel
the case creation?
Please select a product to submit the case.
Please select a product version to submit the case.
0/255
Upload Attachment
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to cancel the case creation?
Case closed successfully
File Upload
Maximum file size allowed is 3 MB.
File type not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
File Upload
Maximum file
size allowed is 3 MB.
File type
not supported.
Supported file types:
Documents (.txt, .doc, .docx, .pdf), Images (.jpg, .png), Comma Separated Files
(.csv) Speadsheets (.xlsx, .xls)
Revenera Assistant
© 2026 Flexera Software. All Rights Reserved.
Case id: 00001065
Activity: Status change: 2 hours ago