0 Replies Latest reply on Apr 21, 2010 4:26 AM by Fis Forums

    Mxmlc File for Linux and Windows

    Fis Forums

      Hi

       

      I have used flexSDK for windows xp OS and i have build mxml file using ant build.xml and i have succeded in it then i implemented the same in Linux OS, but im getting error while mxml file is builld. i have shell script for mxml file which is present in bin folder of the SDK..

       

      Please give me the correct shell script file to build a mxml file

       

       

      Error i get

       

      [echo] mxml file compliation
           [exec] Loading configuration file /root/GRC/jboss/server/default/deploy/nat.war/flexSDK/frameworks/flex-config.xml
           [exec] Error: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.

       

           [exec] java.lang.NoSuchMethodError: method java.math.MathContext.<init> with signature (ILjava.math.RoundingMode;)V was not found.
           [exec]    at macromedia.asc.util.Decimal128Context.<init>(Decimal128Context.java:22)
           [exec]    at macromedia.asc.util.Decimal128Context.<clinit>(Decimal128Context.java:69)
           [exec]    at java.lang.Class.initializeClass(libgcj.so.7rh)
           [exec]    at macromedia.asc.semantics.ConstantEvaluator.evaluate(ConstantEvaluator.java:3268)
           [exec]    at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
           [exec]    at flex2.compiler.abc.Compiler.analyze4(Compiler.java:414)
           [exec]    at flex2.compiler.API.analyze(API.java:2542)
           [exec]    at flex2.compiler.API.analyze(API.java:2432)
           [exec]    at flex2.compiler.API.batch2(API.java:411)
           [exec]    at flex2.compiler.API.batch(API.java:1117)
           [exec]    at flex2.compiler.API.compile(API.java:1290)
           [exec]    at flex2.compiler.API.compile(API.java:1210)
           [exec]    at flex2.tools.Compiler.mxmlc(Compiler.java:240)
           [exec]    at flex2.tools.Compiler.main(Compiler.java:53)

       

      Shell SCript file to this is attached with this post.

      ===========================================

      #!/bin/sh

       

      ################################################################################
      ##
      ##  ADOBE SYSTEMS INCORPORATED
      ##  Copyright 2007 Adobe Systems Incorporated
      ##  All Rights Reserved.
      ##
      ##  NOTICE: Adobe permits you to use, modify, and distribute this file
      ##  in accordance with the terms of the license agreement accompanying it.
      ##
      ################################################################################

       

      #
      # mxmlc launch script for unix.  On windows, mxmlc.exe is used and
      # java settings are managed in jvm.config in this directory.
      #

       

      case `uname` in
              CYGWIN*)
                  OS="Windows"
              ;;
              *)
                  OS=Unix
      esac

       

      D32=''

       

      if [ $OS = "Windows" ]; then
          # set FLEX_HOME relative to mxmlc if not set
          test "$FLEX_HOME" = "" && {
          FLEX_HOME=`dirname $0`/..
              FLEX_HOME=`cygpath -m $FLEX_HOME`
          }

       

      elif [ $OS = "Unix" ]; then

       

          # set FLEX_HOME relative to mxmlc if not set
          test "$FLEX_HOME" = "" && {
          FLEX_HOME=`dirname "$0"`/..
          }
         
          check64="`java -version 2>&1 | grep -i 64-Bit`"
          isOSX="`uname | grep -i Darwin`"
         
          if [ "$isOSX" != "" -a "$HOSTTYPE" = "x86_64" -a "$check64" != "" ]; then
              D32='-d32'
          fi
      fi

       

      # don't use $FLEX_HOME in this variable because it may contain spaces,
      # instead put it on the java args directly, with double-quotes around it
      VMARGS="-Xmx384m -Dsun.io.useCanonCaches=false "

       

      java $VMARGS $D32 $SETUP_SH_VMARGS -jar "$FLEX_HOME/lib/mxmlc.jar" +flexlib="$FLEX_HOME/frameworks" "$@"

       

      Make changes to this and let me work with linux

       

       

      With Regards

      Gopinath.A

      software developer

      chennai,