I have no idea if the code you are trying to do will work, but it's almost
certainly not going to work if you use "application" as your variable name.
Try a different variable name.

-Cameron

On Fri, Apr 25, 2008 at 5:35 PM, Seth Duffey <[EMAIL PROTECTED]> wrote:

> I'm trying to use the Flex 3 SDK to compile a swf file from an mxml text
> file using ColdFusion.
>
> I am getting this error:
> java.lang.NoSuchMethodError:
> flex2.compiler.API.usePathResolver(Lflex2/compiler/common/SinglePathResolver;)V
> at flex2.tools.oem.internal.OEMUtil.init(OEMUtil.java:88) at
> flex2.tools.oem.internal.OEMUtil.getApplicationConfiguration(OEMUtil.java:226)
> at...
>
>
> Here's the code I'm trying:
>
> <cfscript>
>       //set mxml file name
>       input = expandPath('Test.mxml');
>       output = expandPath('Test.swf');
>       //read file
>       mxmlFile = createObject("Java","java.io.File").Init(input);
>       //create flex sdk
>       application =
> createObject("Java","flex2.tools.oem.Application").init(mxmlFile);
>       //create output swf file
>       swf = createObject("Java","java.io.File").Init(output);
>       //set output swf
>       application.setOutput(swf);
>       //build it
>       result = application.build(true);
> </cfscript>
>
> <cfdump var="#result#" />
>
> Above code adapted from first example here
> livedocs.adobe.com/flex/3/compilerAPI_flex3.pdf
>
> I'm on CF8.0.1, the Flex 3 SDK has been added to the classpath, LiveCycle
> Data Services ES was also installed.
>
> Any ideas? thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:304302
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to