Native hostids are provided transparently via Java Native Interface (JNI) hostid integration, and can be enabled with a single method invocation. By shipping platform-dependent native code, it is simple to use the non-Java FlexNet Publisher Licensing Toolkit code to provide hostid capability to FlexEnabled Java products.
The following sections outline how to implement native hostid support.
Task To implement native hostid support on Windows platforms:
1. Build the FlexNet Publisher Licensing Toolkit. Refer to the Development Environment Guide for details on building the kit.
2. Build lmgr11.dll in the FlexNet Publisher Licensing Toolkit. To do so, enter the following from the <sdk_platform> directory in your toolkit installation:
nmake -f makefile DLL=1 to build lmgr11.dll without dongle support
or
nmake -f makefile DLL=1 DONGLE=1 to build lmgr11.dll with dongle support
This client DLL contains the hostid-object code that you must ship with your product.
3. In the Java virtual machine’s $PATH environment variable, include the path to the folder containing lmgr11.dll. This is how the Java Virtual Machine locates code invoked through JNI.
4. In the Java source code, invoke the useNativeHostIds method on any VendorInfo subclass instances that are created by the application code.
Task To implement native hostid support on UNIX platforms:
1. Build the FlexNet Publisher Licensing Toolkit. Refer to the Development Environment Guide for details on building the kit.
2. Build liblmgr11.so in the FlexNet Publisher Licensing Toolkit. To do so, enter the following from the <sdk_platform> directory in your toolkit installation:
make shared_object
This shared object contains the C functions required to support Java native hostids.
3. Set the LD_LIBRARY_PATH system environment variable to include the path to liblmgr11.so.
4. In the Java source code, invoke the useNativeHostIds method on any VendorInfo subclass instances that are created by the application code. See the online API documentation for details on the VendorInfo.useNativeHostids method.
=====================================================================================================
Talking exclusively in the terms of BasicExample.Java file:
| |||||||||||
Related Articles
Library for Native Hostid Couldn't Be Loaded (-521,7024) 9Number of Views Windows 10 based 32 bit application support by FNP. 5Number of Views Java application recognition and public vs. restricted version classification 65Number of Views Are multiple HostIDs supported on SERVER lines? 15Number of Views How FlexNet Publisher Fetches Username and Hostname Through Native Source Code? 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
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. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago