Personal tools

Views

Talk:Flex 3:Feature Introductions:Flex 3 RSLs

From Adobe Labs

Hi, When using this Ant task I get following error:

create-my-rsls:

   [unzip] Expanding: C:\projects\flex3\Runtime Shared Library Test\rsl\myRSL.swc into C:\projects\flex3\Runtime Shared Library Test\rsl_optimized
    [java] java.lang.NoClassDefFoundError: flex2/compiler/config/ConfigurationException
    [java] Exception in thread "main"

BUILD FAILED C:\projects\flex3\Runtime Shared Library Test\build\build.xml:29: The following error occurred while executing this line: C:\projects\flex3\Runtime Shared Library Test\build\build.xml:16: Java returned: 1

I used the optimizer.jar from the current FlexBuilder 3 - M3 Beta 1 Release (build 3.0.172437)


I had only optimizer.jar and digest.jar copied into my project lib directory. After copying all jar files from the Flex 3 directory I get following errors:

[unzip] Expanding: C:\projects\flex3\Runtime Shared Library Test\rsl\myRSL.swc into C:\projects\flex3\Runtime Shared Library Test\rsl_optimized

    [java] command line: Error: default arguments may not be interspersed with other options
    [java] Use 'optimizer -help' for information about using the command line.
  [delete] Deleting: C:\projects\flex3\Runtime Shared Library Test\rsl_optimized\library.swf
    [java] Adobe digest
    [java] Version 3.0 build 172357
    [java] Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.
    [java] command line: Error: default arguments may not be interspersed with other options
    [java] Use 'digest -help' for information about using the command line.

Btw: Is it correct that the external Flex 3 framework RSL has 497841 Bytes (~500 KB)?

Any ideas what I´ve done wrong?

thx and br,

Christoph


When upgrading to flex sdk 3.0.0 (or maybe it's an ant setting) I was getting this error: "Error: unable to open './flex-config.xml'

This occurred in this statement: <java jar="${FLEX_HOME}/lib/optimizer.jar" fork="true" failonerror="true">

Not sure what determines the root path for flex-config.xml, but if you copy it to your projects root it works. In the past it grabbed this from C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\frameworks\flex-config.xml

Retrieved from "http://labs.adobe.com/wiki/index.php/Talk:Flex_3:Feature_Introductions:Flex_3_RSLs"