How to apply the Data Visualization license on command-line in Flex 3 !

In the last post, I talked about the various licensing changes in Flex 3 & FB3. I said that the way to create charting applications n Flex3, is to get a FB Pro license (as charting is not a separate product anymore) and enter the serial number in FB3 and then develop as usual. I also mentioned that the license.properties file has now been moved to a global location in Flex3from its usual “/frameworks” path in Flex 2.

Now, what if you are one of those IDE haters or prefer VI, EMACS, TextPad over any IDE then this causes a problem for you. You might have the FB Pro license number which includes the Charting & Data Visualization component license, but you might not have FB installed. Then the license.properties file does not exist and so you will get a Trial-Watermark on your chart as below, despite having the license key. This will not happen in Flex2, as the license.properties file resides in the SDK directory itself.

DV Watermark

The way to go, is to use the flex-config.xml file. flex-config.xml is the configuration file contains most of the default compiler settings for the application and component compilers. In Flex3, we have added a license tag, where you can specify the compiler option for your Flex serial number.

<licenses>
<license>
<product>flexbuilder3</product>
<serial-number>
your serial number here</serial-number>
</license>
</licenses>

So, the compiler will now pick up the options from the config file, even though license.properties file does not exist.

The good news for those who have FB installed and still want to use the command-line compiler is that the compiler also checks for the existence of the license.properties file, so you may not have to do the above steps and it would work as is for you without problems…

Update (04/23/2008):

The path to find the licence.properties file on various OS’s in the final Flex3 release is as below:

OS Location
Windows XP C:\Documents and Settings\All Users\Application Data\Adobe\Flex\license.properties
Windows Vista C:\ProgramData\Adobe\Flex\license.properties
Mac OSX /Library/Application Support/Adobe/Flex/license.properties
Linux ~/.adobe/Flex/license.properties

You can get more details on this article in the livedocs…

About these ads

7 Responses to How to apply the Data Visualization license on command-line in Flex 3 !

  1. Brant says:

    Hi Raghu,
    Thanks for listing this, I was having issues running the Flex Builder 3 on my mac so I am using the Eclipse plugins and have been running that fine. I have a license for Flex Pro and am attempting to use the charting. I have attempted to apply my Flex Pro Serial number in the manner you have stated above. I then restarted my Eclipse and I still see the Flex Data Visualization Trial. Do I have to specify the product as being the charting product of some sort? I have also tried to make it work by taking the license.properties file from FB2 and put it into /frameworks/license.properties and put my serial in there as well and neither of them takes the watermark away.

    Regards,
    Brant

  2. Larry says:

    I followed this updated advice and was able to compile on linux
    without getting the watermark, so please ignore the comment I
    added to your other blog entry on this subject.

    My next question is: Can our build team use this modified SDK
    for automated builds without purchasing more licenses?

    Thanks,

    Larry

  3. Chrisl says:

    Hi,
    Yeah, I’d be really interested to know if we can use a development license for automated builds, too. Anyone?
    Thanks.
    -Chrisl

    • Lalit sharma says:

      Hi

      I was going through this post and have similar question whether we can use development license for data visualization in production image? Appreciate if you can provide any input.

      thanks
      Lalit

  4. Paul Colby says:

    A very useful post! Thanks :)

    I wrote a small follow-up post on my own blog explaining how to do the same for the Adobe AIR command-line compiler too (it’s very much the same process). If anyone is interested, they can check it out at http://colby.id.au/node/9 ;)

    BTW, although your site is accepting my blog’s trackback, it does not seem to update your blog at all… not sure what’s going on there.

    Thanks again!

    Paul.

  5. Shefali Sherrin says:

    Hi,

    So as I understand it, if we do not have a FlexBuilder 3 Pro license, we will get the watermark. Which is surprising, cos the SDK is supposed to be free, but guess this is how Adobe plans to make it’s money.

    Now the question I have is what others before me have asked – do I need a FlexBuilder 3 Pro license for Production, or (a) can I use the dev license there or (b) can I just deploy an swf compiled on my env (not sure how to do this tho… Cos we build on the Prod box using Maven).

    Any help in this matter is appreciated.

  6. Eric Bloch says:

    I am also interested to know how licensing works for a build machine that does not need/want the IDE, but must compile apps with the data visualization components.

    Adobe seems silent on this as if you have to buy a whole copy of the IDE for each build machine. That seems strange.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.