flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Ent <p...@adobe.com>
Subject Re: HOW TO About FlexJS and Cordova
Date Mon, 20 Jun 2016 15:09:42 GMT
Let's back up a little bit. Let me know if I have your condition correct,

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

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=browser 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" <antonis.kalodimos@gmail.com> wrote:

>I changed all environment variables to show the my latest download of
>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
>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
> +Datatype eclipse.convertPath org.eclipse.core.resources.ant.ConvertPath
> +Datatype eclipse.incrementalBuild
>C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml:114: The directory
>C:\Users\maimoy\Adobe\src does not exist
>	at
>	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
>Adobe and is searching for a folder src that don't exists. Inside this
>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
>which is the flex builder folder for the project inside the workspace. I
>also set inside the env.properties file
>env.FLASHPLAYER_DEBUGGER=C:\\Program Files\\Adobe\\Flash Player Content
>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
>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 =
>Project base dir set to: C:\Users\maimoy\Adobe Flash Builder
>parsing buildfile
>with URI =
>from a zip file
> [property] Loading Environment env.
>[available] Unable to find dir app\MyFirstFlexJS to set property
>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, ]
>    [mkdir] Created dir: C:\Users\maimoy\Adobe Flash Builder
>     [exec] Current OS is Windows 8.1
>     [exec] Executing 'cordova.cmd' with arguments:
>     [exec] 'create'
>     [exec] 'MyFirstFlexJS'
>     [exec] 
>     [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] 
>     [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] 
>     [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]       
>     [echo] Compiling FlexJS app
>     [exec] Current OS is Windows 8.1
>     [exec] Executing 'mxmlc' with arguments:
>     [exec] 'MyFirstFlexJS.mxml'
>     [exec] 
>     [exec] The ' characters around the executable and arguments are
>     [exec] not part of the command.
>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"):
>error=2, The system cannot find the file specified
>        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
>        at java.lang.Runtime.exec(Runtime.java:620)
>        at
>        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
>        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
>        at
>        at 
>        at 
>        at
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
>        at
>        at java.lang.reflect.Method.invoke(Method.java:497)
>        at
>        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
>        at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
>        at
>        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=2, The system cannot
>find the file specified
>        at java.lang.ProcessImpl.create(Native Method)
>        at java.lang.ProcessImpl.<init>(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
>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:
>Sent from the Apache Flex Users mailing list archive at Nabble.com.

View raw message