- Revenera Community
- :
- FlexNet Embedded
- :
- FlexNet Embedded Forum
- :
- How to get license from environment variable (LM_LICENSE_FILE) in Basic client.java and also Capab...
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
How to get license from environment variable (LM_LICENSE_FILE) in Basic client.java and also CapabilityRequest.java
Hi,
Is there is any way to get the "LM_LICENSE_FILE" from the environment variable from the 'CapabilyRequest.java' or we must write a code for geting environment variable in java.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @avdhesh,
LM_LICENSE_FILE is an environment variable for the FlexNet Publisher (formerly FlexLM) licensing technology whilst basic_client.java and capabilityrequest.java are primer examples for the FlexNet Embedded licensing technology.
Are you looking to implement both technologies? Both technologies can co-exist in the same implementation / application, yet each technology operates autonomously from the other.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
args = new String[]{"-server", "http://localhost:8080/request"};
So i just want to know is there any way to get Environment variable using flexlm API.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @avdhesh,
Thank you for the follow-up information.
As it's a system environment variable, it will need to be retrieved programmatically - e.g.
System.getenv("LM_LICENSE_FILE");
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
If there is no such a way then i have to do at my side.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @avdhesh , no native Flex/Flx/Flc/ API for retrieving any of the FlexLM / FNP environment variables, so must be accomplished programmatically using the IDE built-in API framework.