Uncategorized
Using Flex 2.0 Final SDK on the Mac
I have posted my experiences in getting the SDK compiling via Ant in the past. When I pulled down the final release of the sdk I was unable to get my ant script working. I assumed it was because the command line options had changed ( they had between every other release) and decided to look into it more when I had time.
Well I need to look no further. Chris Griffith posted over on John Barrets blog about a solution. In this post John explains the the problem is related to an xml configuration change that needs to happen in the flex-config.xml of your sdk.
This fix is very simple. Just add this code on line 117 of your flex-config.xml just inside the end fonts tag.
10 Jul 2006 Simeon

Hi Simeon,
Yeah I am greatful to Chris to pointing this out to me. I was going crazy trying to figure that out! Now everything just works the way it is suppose to:)
Thank you so much for all your help!
PS. Have you tried flex 2 with Eclipse 3.2?
John
There is another way to fix this which isn’t platform dependent:
Add a line like the following to your ant build where you call mxmlc:
<jvmarg value="-Dapplication.home=${flex.sdk.dir}"/>
This assumes that you have set a flex.sdk.dir property to the location of the Flex SDK.
-James
Thanks James,
I had have that argument in my ant script but its just set to my base directory. It had worked fine with all the other revs of the sdk so I didnt even think twice about it being where the problem was, although I saw that it was a path issue. I tried all sorts of compiler options but none of them worked.
Although now that you say it, that makes total sense and the path I currently have in there is exactly what path it was trying to use to find my macFonts.ser.
Thanks Again
For anyone using my ant script this fix means changing this line.
<arg line="-Dapplication.home=${basedir}" />
To
<arg line="-Dapplication.home=${cdir}" />
And undoing any changes you may have made to your flex-config file.