Return-Path: X-Original-To: apmail-flex-dev-archive@www.apache.org Delivered-To: apmail-flex-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6707FFFF1 for ; Fri, 5 Apr 2013 12:20:23 +0000 (UTC) Received: (qmail 73095 invoked by uid 500); 5 Apr 2013 12:20:21 -0000 Delivered-To: apmail-flex-dev-archive@flex.apache.org Received: (qmail 71360 invoked by uid 500); 5 Apr 2013 12:20:19 -0000 Mailing-List: contact dev-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list dev@flex.apache.org Received: (qmail 70455 invoked by uid 99); 5 Apr 2013 12:20:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 12:20:18 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FRT_ADOBE2,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 12:20:14 +0000 Received: by mail-ie0-f174.google.com with SMTP id aq17so4133248iec.19 for ; Fri, 05 Apr 2013 05:19:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=Ttt81h/nfP2CkFOErX4l+r4GTWWYX5LDGMRcDkK+bvw=; b=lwzn8BYqCPfNXuLwslfhZexhnLx41VMpzJvIfAMjPRT6dYjyLbdKx7pY1yvdfVU6zo 5xWnjOlLjxOh1SIO/Rlc76vAf9gt+uhs1o4hSSmuaksa+i1+GYfanGixt1NvgbWbOva/ AS+vqtObtm5OjX6T2whgw6HyG2+dqbZTLQzAO2CxmmtnNPqFY5mldhfPgD7hn4a/JRzK LDKU+PMr8Z21MkUmWgTyjKYR32Em5+/GCrh0xI7h5RBCwNK4WzCTFBPuylavYKOrbqie TS1Ipo63xVHC9PwWd5FBlayWv9Yh2oAB8fKzf130YD/n6dExL91MMVz9+4NCBjQ6UUwS ox6g== MIME-Version: 1.0 X-Received: by 10.50.119.104 with SMTP id kt8mr1421740igb.0.1365164392612; Fri, 05 Apr 2013 05:19:52 -0700 (PDT) Received: by 10.64.226.131 with HTTP; Fri, 5 Apr 2013 05:19:52 -0700 (PDT) In-Reply-To: <029401ce31d8$fb830dd0$f2892970$@gmail.com> References: <029401ce31d8$fb830dd0$f2892970$@gmail.com> Date: Fri, 5 Apr 2013 07:19:52 -0500 Message-ID: Subject: Re: FalconJX mxmlc error From: Erik de Bruin To: "dev@flex.apache.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQkUaAAbO3LgJmk3bCA9ChXc0TTx1SPk+7DIRejaVx7w2kQEhJp6IOYKjwfU0Cfmz4mdHmKu X-Virus-Checked: Checked by ClamAV on apache.org Tigran, Being a work in progress, FalconJx works only with a very specific set of inputs. To build FlexJS, use these (add/change paths to match your setup): +env.PLAYERGLOBAL_HOME=[pathToGlobalPlayerSWCRoot] +playerglobal.version=11.1 -load-config="/Applications/Adobe Flash Builder 4.7/sdks/4.9.1/frameworks/flex-config.xml" -library-path+=[pathToFlexUISWC] -js-output-type=FLEXJS -closure-lib=[pathToGoogleClosureLibRoot] -sdk-js-lib=[pathToFlexJSSrc] [pathToProjectMainMXML] And yes, I do agree that better documentation would help. Maybe you can keep notes while you are working on getting this to run on your system. We could use those as the basis for a wiki page. HTH, EdB On Fri, Apr 5, 2013 at 3:38 AM, Tigran Najaryan wrote: > OK, I built FalconJX but how do I use it properly? Simply running mxmlc > without a command line gives an error: > > D:\WORK\Projects\ApacheFlex\repo\falcon\trunk\compiler.jx\bin>mxmlc > Using Flex SDK: D:\WORK\Projects\ApacheFlex\repo\sdk\branches\develop > Exception in thread "main" java.lang.UnsupportedOperationException > at > org.apache.flex.compiler.internal.driver.as.ASBackend.getSourceFileHandlerIn > stance(ASBackend.java:70) > at org.apache.flex.compiler.clients.MXMLJSC.(MXMLJSC.java:201) > at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:169) > > > Looks like it selects AS backend where getSourceFileHandlerInstanceI() is > not implemented. > > From the MXMLJSC.java I can see it expects a -js-output-type= parameter. > Calling with any of -js-output-type=flexjs, -js-output-type=good or > -js-output-type=amd results in another error in > WorkspaceProblemFormatter.java but I do not even have the source file in my > org/apache/flex/compiler/clients/problems directory. > > Here is the error: > > D:\WORK\Projects\ApacheFlex\repo\falcon\trunk\compiler.jx\bin>mxmlc > -js-output-type=flexjs > D:\WORK\Projects\ApacheFlex\repo\falcon\trunk\compiler.js\tests\TestApp.as > Using Flex SDK: D:\WORK\Projects\ApacheFlex\repo\sdk\branches\develop > Exception in thread "main" com.google.common.collect.ComputationException: > java.lang.IllegalAccessError: tried to access method > com.google.common.collect.MapMaker.maximumSize(I)Lcom/google/common/collect/ > MapMaker; from class > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter$FileLine > Info > at > com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:887 > ) > at > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter.getLineT > ext(WorkspaceProblemFormatter.java:207) > at > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter.format(W > orkspaceProblemFormatter.java:132) > at > org.apache.flex.compiler.clients.problems.ProblemPrinter.printProblems(Probl > emPrinter.java:90) > at > org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:225) > at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:171) > Caused by: java.lang.IllegalAccessError: tried to access method > com.google.common.collect.MapMaker.maximumSize(I)Lcom/google/common/collect/ > MapMaker; from class > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter$FileLine > Info > at > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter$FileLine > Info.(WorkspaceProblemFormatter.java:258) > at > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter$1.apply( > WorkspaceProblemFormatter.java:103) > at > org.apache.flex.compiler.clients.problems.WorkspaceProblemFormatter$1.apply( > WorkspaceProblemFormatter.java:98) > at > com.google.common.collect.ComputingConcurrentHashMap$ComputingValueReference > .compute(ComputingConcurrentHashMap.java:356) > at > com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.comput > e(ComputingConcurrentHashMap.java:182) > at > com.google.common.collect.ComputingConcurrentHashMap$ComputingSegment.getOrC > ompute(ComputingConcurrentHashMap.java:151) > at > com.google.common.collect.ComputingConcurrentHashMap.getOrCompute(ComputingC > oncurrentHashMap.java:67) > at > com.google.common.collect.MapMaker$ComputingMapAdapter.get(MapMaker.java:883 > ) > ... 5 more > > > > Also tried compiling the FlexJSTest_again and get exact same error message. > > > Did I build FalconJX incorrectly or am I using it incorrectly? > > Thanks. > > > > -----Original Message----- > From: Alex Harui [mailto:aharui@adobe.com] > Sent: Thursday, April 04, 2013 5:59 PM > To: dev@flex.apache.org > Subject: Re: Error compiling TestApp sample using FalconJS > > The classpaths may have changed to break just running mxmlc from the bin > directory. I would recommend getting set up on FalconJX instead if you are > planning to contribute code going forward. If you want to try to use > FalconJS for now, then use the FlexJSOverlay.zip as it sets up the classes > in the class path properly. > > -- Ix Multimedia Software Jan Luykenstraat 27 3521 VB Utrecht T. 06-51952295 I. www.ixsoftware.nl