PDA

View Full Version : platform\pubkey.h



varmadatla
02-16-2007, 09:19 AM
Hi,
I am trying FLEX Licensing module and want some help using your Java api.

In the documentation,"Evaluating FLEXnet Licensing for Java on Windows" chapter, it was mentioned to copy platform\lmpubkey.h to C:\Program Files\flmjava\v10.1\java folder. But, I couldn't find this lmpubkey.h file and instead I found lmprikey.h in the platform folder.

Could you guide me to find this file?

Thanks,
Varma

RobertDickau
02-16-2007, 09:49 AM
You generate lmpubkey.h with the lmnewgen utility from your C Licensing toolkit; please see the FLEXnet Licensing for Java Programming Guide help topic "Create the demoInfo Class File".

varmadatla
02-16-2007, 12:12 PM
Thanks for the instant reply.
Yes, I am looking at the topic "Create the demoInfo Class File" and it needs this platform\lmpubkey.h file.
I did compiled and linked the sample C application as suggested in the "Chapter4 Building your FlexEnabled application" located in LicensingProgAndRefGuide.pdf. This did created lm_new.obj and other files but not lmpubkey.h file.

dngo01
02-16-2007, 12:52 PM
In the platform directory, type

lmnewgen -pubkey

dwatson1
02-16-2007, 12:55 PM
to generate the lmpubkey.h please execute "lmnewgen.exe -pubkey" from the \i86_n3 directory.

Thanks
Dave

RobertDickau
02-16-2007, 01:22 PM
Quite right, I should have been more specific: in that section I mentioned, there's a note reading:
Note: If lmpubkey.h does not exist, you need to create it. In the platform directory, type lmnewgen –pubkey.

varmadatla
02-16-2007, 03:11 PM
Thanks for the info guys. I'm able to build the java app now.
Tried to find that "Note" regarding the lmpubkey.h in java guide but did missed it badly.

naryal
11-19-2007, 05:05 PM
I tried the same thing
lmnewgen –pubkey
now the problem is I get following error:
bash: /usr/flmjava/v11.4.100.0/ppc_re3/lmnewgen: cannot execute binary file
Did I do anything wrong?