Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0D5C5200B16 for ; Mon, 20 Jun 2016 17:10:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0BA37160A55; Mon, 20 Jun 2016 15:10:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 06331160A26 for ; Mon, 20 Jun 2016 17:10:00 +0200 (CEST) Received: (qmail 73301 invoked by uid 500); 20 Jun 2016 15:09:55 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 73289 invoked by uid 99); 20 Jun 2016 15:09:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 15:09:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 74965C3AD5 for ; Mon, 20 Jun 2016 15:09:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.41 X-Spam-Level: ** X-Spam-Status: No, score=2.41 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_LINEPADDING=1.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=adobe.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 2sSZMJYAS2EV for ; Mon, 20 Jun 2016 15:09:52 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0065.outbound.protection.outlook.com [65.55.169.65]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 581015F3A0 for ; Mon, 20 Jun 2016 15:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adobe.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YiUmVdsdSUZm8EsUNL0zmXk5MjcUVDwQ0YWUlISnjyw=; b=Q11HpIjfcGW4BssmT0lF6IAAJ0q5e6vbuI13vStnHLVsp9B9/X/Suhg3bXbr1lIW9/sN0ycbgTprcGnl/JhbFtKezg8QO1faIzZ1HlkSxt+m4ILZXuSxjoO2a15cLSYO1o4e9PkX5xItogMs+k4Te4JECcfpuvz3yxpGATzHWqc= Received: from BLUPR0201MB1793.namprd02.prod.outlook.com (10.162.239.15) by BLUPR0201MB1796.namprd02.prod.outlook.com (10.162.239.18) with Microsoft SMTP Server (TLS) id 15.1.523.12; Mon, 20 Jun 2016 15:09:42 +0000 Received: from BLUPR0201MB1793.namprd02.prod.outlook.com ([10.162.239.15]) by BLUPR0201MB1793.namprd02.prod.outlook.com ([10.162.239.15]) with mapi id 15.01.0523.015; Mon, 20 Jun 2016 15:09:42 +0000 From: Peter Ent To: "users@flex.apache.org" Subject: Re: HOW TO About FlexJS and Cordova Thread-Topic: HOW TO About FlexJS and Cordova Thread-Index: AQHRyQFwhprP+ONNmE6b9Nhp8VeFDp/uwfsAgAB4f4CAAP8ZAIABBRWAgAAKVICAAJhQAIAAhwYA///OJIA= Date: Mon, 20 Jun 2016 15:09:42 +0000 Message-ID: References: <1466211233842-12866.post@n4.nabble.com> <1466256915701-12869.post@n4.nabble.com> <1466367763229-12874.post@n4.nabble.com> <1466369981990-12875.post@n4.nabble.com> <1466431686450-12880.post@n4.nabble.com> In-Reply-To: <1466431686450-12880.post@n4.nabble.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.4.160422 authentication-results: spf=none (sender IP is ) smtp.mailfrom=pent@adobe.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [24.98.132.247] x-ms-office365-filtering-correlation-id: 831d7b72-ce92-4fd9-2b32-08d3991ce861 x-microsoft-exchange-diagnostics: 1;BLUPR0201MB1796;6:hgeLK+rY5OKQIDX4molJ4GBWtouh2uMJ9QfpB4/N2dQwSXP5od8HexHw9dsgVHBkSHGRayixkElHi2HKrOZ1jhQzxNsvuUwLjoHIuePF1EQfHeiZI5nT97Tuw2ONMSDpQDtapcCnfrbrXfej8OiGN7IWNtSKlUJV+N1n3wns2kTW9A+lAuIyh6Rv0ssLLQ1K28p675O7gVeK/LMpoUCikPvwbDapDxpT8IpG9l7Rapxad9YlRlkOCynjhs3u1eHFy6wBGFFl1qLDoKgonD9Qk4Wz6GQR/tiEnbtl4SQr+HpN3+9AC9p8b0pwchYYB50PPkK19Y8uXwE90hE0qbyXwQ==;5:0b/42G9U6z8EduUCoTTgiOHtZaEcTKsbF17XJnNFd+/8wALTgHXowBc2MAvOiscu9EBAR3dZMZ91wA/v0aVPiMxR+ikcQcfvlCUy+CI6HTFGAKu+t+2bn9HZgfceb9mPV6YV0RE/H+5uBZpZRHw6bw==;24:cA1QkKn0VNJnhJl+R0engOMZgbv6i6T+mAutcRg524YCZlsAJhjYp9yn27LrD5fBWOGWrqZipzaQB81Kli4s6KsouNl47OTeVpeQJw8I3IU=;7:hENIAg9xdHX9PGdeyGdDY20EvZPKy72jtvvP8FgHS5ofBfgWYqLx+RIy4BL03wgfB3JFBCx+nVeU4lzQWOs/TBAGOAJQYUTBZFC+1Qy5WNAjdqQ1E45Wka+95VhuIZ2kIKSmO0hgLp3VSDI2b+tlklPVubGV/Gv1jPv9YG21OcNAnmQvtBmtauv6LCuAcRbOeU4pJi5W1LvKRTp5tf5JDTwqZtRs9yWVKKd/NW3qydhIe/E2tJ22ds738cUO4F+6 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1796; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(17755550239193); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(61425038)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038);SRVR:BLUPR0201MB1796;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0201MB1796; x-forefront-prvs: 09796A1B83 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(24454002)(189002)(377454003)(199003)(450100001)(15975445007)(66066001)(2906002)(2900100001)(92566002)(122556002)(77096005)(8676002)(7736002)(81166006)(86362001)(83506001)(2950100001)(1730700003)(81156014)(93886004)(2351001)(110136002)(1720100001)(189998001)(107886002)(4001350100001)(101416001)(36756003)(102836003)(106356001)(3846002)(7846002)(5002640100001)(54356999)(586003)(87936001)(105586002)(6116002)(3280700002)(99286002)(11100500001)(68736007)(19580405001)(19580395003)(106116001)(2501003)(8936002)(97736004)(76176999)(50986999)(10400500002)(10090500001)(3660700001)(460985005)(19627235001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR0201MB1796;H:BLUPR0201MB1793.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; received-spf: None (protection.outlook.com: adobe.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <34C2C812D415BA4284E02C991E1FED37@namprd02.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: adobe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jun 2016 15:09:42.5537 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: fa7b1b5a-7b34-4387-94ae-d2c178decee1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0201MB1796 archived-at: Mon, 20 Jun 2016 15:10:02 -0000 Let's back up a little bit. Let me know if I have your condition correct, please: You've got the latest nightly build, 0.7.0, correct? You've run its installer and built a FlexJS SDK that Flash Builder can use and you've set that as Flash Builder's default SDK? You've imported the launch configurations into Flash Builder such that you have: You create a simple Flash Builder project, as shown on the Wiki page[1]? You've run the External Tools->FlexJS (Cordova Build) and you have the same output has shown on the Wiki page? You can then run External Tools->FlexJS (Cordova Run) that runs the Android emulator? NOTE: If you want to save a little time, add -Dplatform=3Dbrowser to those Cordova launch configurations so that the Build and Run steps use the browser rather than a device or simulator. This will be a little faster right now but obviously as you need real Android stuff you won't be able to run it in the browser. Let me know that state of that so far. Peter Ent Adobe Systems/Apache Flex Project On 6/20/16, 10:08 AM, "maimoy" wrote: >I changed all environment variables to show the my latest download of >flexjs >0.7 i restarted the pc to be sure of the changes. I import the new "Launch >Configurations" from the latest flexjs and i noticed many configuration >additions and changes. First I checked the "FlexJS (FalconJX Debug and >Release Build)" and "FlexJS (FalconJX Debug Build)" and only by adding the >"-remove-circulars" compiler options they work fine. >I also added the -d parameter in arguments for calling these scripts to >have >a verbose logging. >The Ant Builds "FlexJS (Cordova Build)" and "FlexJS (Cordova Run)" they >throw me these errors at the start in Flash Builder's console > >Apache Ant(TM) version 1.9.6 compiled on June 29 2015 >Unknown target: Flash >Unknown target: Builder >Unknown target: 4.7\MyFirstFlexJS >Buildfile: C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml > +Datatype fb.exportReleaseBuild >com.adobe.flexbuilder.exportimport.ant.ExportReleaseBuildTask > +Datatype eclipse.convertPath org.eclipse.core.resources.ant.ConvertPath > +Datatype eclipse.incrementalBuild >org.eclipse.core.resources.ant.IncrementalBuild >. >. >. > >BUILD FAILED >C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml:114: The directory >C:\Users\maimoy\Adobe\src does not exist > at >org.apache.tools.ant.taskdefs.ExecTask.checkConfiguration(ExecTask.java:51 >1) > at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:494) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) >. >. >. > >As I am seeing is trying and creates a directory under user directory >named >Adobe and is searching for a folder src that don't exists. Inside this >Adobe >directory created, there are created also >"C:\Users\maimoy\Adobe\app\MyFirstFlexJS" which is a cordova application >structure inside it. > > I also tried to run the command: >ant -v -f cordova-buildFromJS07.xml > >from inside directory C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS >which is the flex builder folder for the project inside the workspace. I >also set inside the env.properties file > >env.AIR_HOME=3DC:\\AdobeAIRSDK >env.FALCON_HOME=3DC:\\AdobeSdks\\FlexJS0.7Nighty >env.FALCONJX_HOME=3DC:\\AdobeSdks\\FlexJS0.7Nighty >env.FLASHPLAYER_DEBUGGER=3DC:\\Program Files\\Adobe\\Flash Player Content >Debugger\\flashplayer_21_sa_debug.exe >env.FLEX_HOME=3DC:\\AdobeSdks\\FlexJS0.7Nighty >env.GOOG_HOME=3DC:\\AdobeSdks\\FlexJS0.7Nighty\\js\\lib\\google\\closure-l= ib >rary >env.PLAYERGLOBAL_HOME=3DC:\\AdobeSdks\\FlexJS0.7Nighty\\frameworks\\libs\\= pl >ayer > >according to my environment windows variables to explicitly set them. > >Here is the output from the execution of above command in Command Prompt >elevated opened as administrator. > >Apache Ant(TM) version 1.9.6 compiled on June 29 2015 >Buildfile: C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS\cordova-buildFromJS07.xml >Detected Java version: 1.8 in: C:\Program Files\Java\jdk1.8.0_40\jre >Detected OS: Windows 8.1 >parsing buildfile C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS\cordova-buildFromJS07.xml with URI =3D >file:/C:/Users/maimoy/Adobe%20Flash%20Builder%204.7/MyFirstFlexJS/cordova- >buildFromJS07.xml >Project base dir set to: C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS >parsing buildfile >jar:file:/C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml >with URI =3D >jar:file:/C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml >from a zip file > [property] Loading Environment env. >[available] Unable to find dir app\MyFirstFlexJS to set property >app.dir.exists >Build sequence for target(s) `main' is [makedir, create, compilejs, purge, >copyfiles, main] >Complete build sequence is [makedir, create, compilejs, purge, copyfiles, >main, run, clean, super-clean, ] > >makedir: > [mkdir] Created dir: C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS\app > >create: > [exec] Current OS is Windows 8.1 > [exec] Executing 'cordova.cmd' with arguments: > [exec] 'create' > [exec] 'MyFirstFlexJS' > [exec]=20 > [exec] The ' characters around the executable and arguments are > [exec] not part of the command. > [exec] Creating a new cordova project. > [echo] Adding in platform(s). This may take awhile. > [exec] Current OS is Windows 8.1 > [exec] Executing 'cordova.cmd' with arguments: > [exec] 'platform' > [exec] 'add' > [exec] 'android' > [exec]=20 > [exec] The ' characters around the executable and arguments are > [exec] not part of the command. > [exec] Adding android project... > [exec] Creating Cordova project for the Android platform: > [exec] Path: platforms\android > [exec] Package: io.cordova.hellocordova > [exec] Name: HelloCordova > [exec] Activity: MainActivity > [exec] Android target: android-23 > [exec] Android project created with cordova-android@5.1.1 > [exec] Discovered plugin "cordova-plugin-whitelist" in config.xml. >Adding it to the project > [exec] Fetching plugin "cordova-plugin-whitelist@1" via npm > [exec] Installing "cordova-plugin-whitelist" for android > [exec]=20 > [exec] This plugin is only applicable for versions of >cordova-android greater than 4.0. If you have a previous platform version, >you do *not* need this plugin since the whitelist will be built in. > [exec] =20 > >compilejs: > [echo] Compiling FlexJS app > [exec] Current OS is Windows 8.1 > [exec] Executing 'mxmlc' with arguments: > [exec] 'MyFirstFlexJS.mxml' > [exec]=20 > [exec] The ' characters around the executable and arguments are > [exec] not part of the command. >BUILD FAILED >C:\Users\maimoy\Adobe Flash Builder >4.7\MyFirstFlexJS\cordova-buildFromJS07.xml:114: Execute failed: >java.io.IOException: Cannot run program "mxmlc" (in directory >"C:\Users\maimoy\Adobe Flash Builder 4.7\MyFirstFlexJS\src"): >CreateProcess >error=3D2, The system cannot find the file specified > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) > at java.lang.Runtime.exec(Runtime.java:620) > at >org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13Co >mmandLauncher.java:58) > at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428) > at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442) > at >org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:629) > at=20 >org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670) > at=20 >org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:496) > at >org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at >sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >62) > at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm >pl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at >org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106 >) > at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:435) > at org.apache.tools.ant.Target.performTasks(Target.java:456) > at >org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405) > at org.apache.tools.ant.Project.executeTarget(Project.java:1376) > at >org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor >.java:41) > at org.apache.tools.ant.Project.executeTargets(Project.java:1260) > at org.apache.tools.ant.Main.runBuild(Main.java:853) > at org.apache.tools.ant.Main.startAnt(Main.java:235) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112) >Caused by: java.io.IOException: CreateProcess error=3D2, The system cannot >find the file specified > at java.lang.ProcessImpl.create(Native Method) > at java.lang.ProcessImpl.(ProcessImpl.java:386) > at java.lang.ProcessImpl.start(ProcessImpl.java:137) > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) > ... 24 more > > >Are there any parameters that must be set in "External Tools >Confuguration" >in Flash builder for the script to run correctly? > >Can it be run from command prompt with some more parameters? > >Thank you > > > > > > > > > > > > > >-- >View this message in context: >http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cor >dova-tp12866p12880.html >Sent from the Apache Flex Users mailing list archive at Nabble.com.