You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by maimoy <an...@gmail.com> on 2016/06/18 00:53:53 UTC
HOW TO About FlexJS and Cordova
Can anybody give some help about the details of how it can be build a project
with flexjs and then create the cordova project within flash builder?
I can do that with the demo project only by using the ant command and only
using the cordova-build.xml from the flexjs package downloaded with npm.
The config-build.xml files that are included in FlexJS 0.6 and nighty build
0.7 are quite different and i can't make them work. Also in this page
https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=63406558
titled as "Creating an Apache Cordova™ Application with FlexJS™ and Flash
Builder" in section "Building the Application" how can be imported these two
ant configurations FlexJS (Cordova Run) and FlexJS (Cordova Build) are
presented in the menu without enough details how can this achieved. Which
cordova-build.xml need to be imported from npm flexjs installation or from
the downloads for FlexJS 0.6 of FlexJS 0.7?
Any more detailed help for these steps it should be quite helpful because i
have try all these step be step and i didn't make it work through flash
builder.
What the differences between flexjs downloaded from npm and the flexjs sdks
that can be downloaded with apache flex installer?
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
Thank you both guys.
Alex was right. After putting quotes like this
-d -Dplatform=android -Dprojectdir="${project_loc}"
everything work now.
Thank you both!!!
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12897.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
That is done. The next successful nightly build will contain the changes.
Please let us know how that goes.
Peter
On 6/20/16, 3:47 PM, "Peter Ent" <pe...@adobe.com> wrote:
>I'll patch that up today. But you could hand-end the configure and see if
>it helps if you don't want to wait.
>
>Peter
>
>
>> On Jun 20, 2016, at 3:10 PM, Alex Harui <ah...@adobe.com> wrote:
>>
>> I think that is a space-in-path issue. I think wherever we have
>> ${project_loc} in the .launch files it needs to be
>> "${project_loc}"
>>
>> -Alex
>>
>>> On 6/20/16, 10:40 AM, "Peter Ent" <pe...@adobe.com> wrote:
>>>
>>> I am using Mac OS X El Capitan. I wrote the Flash Builder launch
>>>configs
>>> as well as the Wiki page that describes them. Alex and others are
>>>better
>>> with issues with the build and installers, and other people in the
>>>Apache
>>> Flex group have good experience, too.
>>>
>>> Peter
>>>
>>>> On 6/20/16, 12:55 PM, "maimoy" <an...@gmail.com> wrote:
>>>>
>>>> I am going to create a new workspace in my C: drive under root folder
>>>> without
>>>> spaces to check.
>>>>
>>>> Which operating system are you using and it is working?
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>>
>>>>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-
>>>>Co
>>>> r
>>>> dova-tp12866p12889.html
>>>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>>
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
I'll patch that up today. But you could hand-end the configure and see if it helps if you don't want to wait.
Peter
> On Jun 20, 2016, at 3:10 PM, Alex Harui <ah...@adobe.com> wrote:
>
> I think that is a space-in-path issue. I think wherever we have
> ${project_loc} in the .launch files it needs to be
> "${project_loc}"
>
> -Alex
>
>> On 6/20/16, 10:40 AM, "Peter Ent" <pe...@adobe.com> wrote:
>>
>> I am using Mac OS X El Capitan. I wrote the Flash Builder launch configs
>> as well as the Wiki page that describes them. Alex and others are better
>> with issues with the build and installers, and other people in the Apache
>> Flex group have good experience, too.
>>
>> Peter
>>
>>> On 6/20/16, 12:55 PM, "maimoy" <an...@gmail.com> wrote:
>>>
>>> I am going to create a new workspace in my C: drive under root folder
>>> without
>>> spaces to check.
>>>
>>> Which operating system are you using and it is working?
>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Co
>>> r
>>> dova-tp12866p12889.html
>>> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Re: HOW TO About FlexJS and Cordova
Posted by Alex Harui <ah...@adobe.com>.
I think that is a space-in-path issue. I think wherever we have
${project_loc} in the .launch files it needs to be
"${project_loc}"
-Alex
On 6/20/16, 10:40 AM, "Peter Ent" <pe...@adobe.com> wrote:
>I am using Mac OS X El Capitan. I wrote the Flash Builder launch configs
>as well as the Wiki page that describes them. Alex and others are better
>with issues with the build and installers, and other people in the Apache
>Flex group have good experience, too.
>
>Peter
>
>On 6/20/16, 12:55 PM, "maimoy" <an...@gmail.com> wrote:
>
>>I am going to create a new workspace in my C: drive under root folder
>>without
>>spaces to check.
>>
>>Which operating system are you using and it is working?
>>
>>
>>
>>
>>--
>>View this message in context:
>>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Co
>>r
>>dova-tp12866p12889.html
>>Sent from the Apache Flex Users mailing list archive at Nabble.com.
>
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
I am using Mac OS X El Capitan. I wrote the Flash Builder launch configs
as well as the Wiki page that describes them. Alex and others are better
with issues with the build and installers, and other people in the Apache
Flex group have good experience, too.
Peter
On 6/20/16, 12:55 PM, "maimoy" <an...@gmail.com> wrote:
>I am going to create a new workspace in my C: drive under root folder
>without
>spaces to check.
>
>Which operating system are you using and it is working?
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cor
>dova-tp12866p12889.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
I am going to create a new workspace in my C: drive under root folder without
spaces to check.
Which operating system are you using and it is working?
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12889.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
I need to try this on Windows. It looks like one of the problems may be spaces in file names. But I want to try this myself to be sure.
Peter
> On Jun 20, 2016, at 1:17 PM, maimoy <an...@gmail.com> wrote:
>
> I follow you advice and run the ant -f installer.xml and re import the flexjs
> sdk and launch configurations.
> The errors after running the ant launch named "FlexJS (Cordova Build)"
> same errors apperared again.
> How can apply manually the parameters needed to resolve these errors
> appeared in the start
>
> Unknown target: Flash
> Unknown target: Builder
> Unknown target: 4.7\DataBindingExample
>
> and what is it searching in this?
> BUILD FAILED
> C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml:114: The directory
> C:\Users\maimoy\Adobe\src does not exist.
>
> All I want is to create a new project with FlexJS, compile it with FalconJX
> and then try to make this project a cordova application running even and in
> the browser not android.
>
> Thank you
>
>
>
> --
> View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12887.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
I follow you advice and run the ant -f installer.xml and re import the flexjs
sdk and launch configurations.
The errors after running the ant launch named "FlexJS (Cordova Build)"
same errors apperared again.
How can apply manually the parameters needed to resolve these errors
appeared in the start
Unknown target: Flash
Unknown target: Builder
Unknown target: 4.7\DataBindingExample
and what is it searching in this?
BUILD FAILED
C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml:114: The directory
C:\Users\maimoy\Adobe\src does not exist.
All I want is to create a new project with FlexJS, compile it with FalconJX
and then try to make this project a cordova application running even and in
the browser not android.
Thank you
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12887.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
Once you download the nightly you need to build it for use by Flash
Builder. In the downloaded directory, do:
ant -f installer.xml
It will present you with a bunch of questions, answer as you see fit (eg,
yes) and you will get a directory usable by Flash Builder. Maybe this is
the problem.
‹peter
On 6/20/16, 11:16 AM, "maimoy" <an...@gmail.com> wrote:
>I downloaded yesterday the latest flexJS nighty build with apache flex sdk
>installer. I didn't run any other installer. I had this latest sdk as
>default in compiler settings page for the project, not default for flash
>builder. I turned it to default and restart the flash builder with the
>same
>errors.
>
>I run the "FlexJS (Cordova Build)" from
>"C:\AdobeSdks\FlexJS0.7Nighty/cordova-build.xml" with parameters
>-d -Dprojectdir=${project_loc} -Dplatform=browser
>-Dappname=DataBindingExample -DTARGET_DIR="C:\Users\maimoy\Adobe Flash
>Builder 4.7\DataBindingExample"
>
>
>with the following output in flash builder console window.
>
>Apache Ant(TM) version 1.9.6 compiled on June 29 2015
>Unknown target: Flash
>Unknown target: Builder
>Unknown target: 4.7\DataBindingExample
>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
> +Datatype eclipse.refreshLocal
>org.eclipse.core.resources.ant.RefreshLocalTask
> +Datatype p2.director
>org.eclipse.equinox.p2.director.app.ant.DirectorTask
> +Datatype eclipse.jarProcessor
>org.eclipse.equinox.internal.p2.jarprocessor.ant.JarProcessorTask
> +Datatype p2.composite.metadata.repository.add
>org.eclipse.equinox.internal.p2.metadata.repository.ant.AddChildTask
> +Datatype p2.composite.metadata.repository.create
>org.eclipse.equinox.internal.p2.metadata.repository.ant.CreateCompositeMet
>adataRepositoryTask
> +Datatype p2.composite.metadata.repository.remove
>org.eclipse.equinox.internal.p2.metadata.repository.ant.RemoveChildTask
> +Datatype p2.publisher
>org.eclipse.equinox.internal.p2.publisher.ant.PublisherTask
> +Datatype p2.publish.featuresAndBundles
>org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBundlesPublisherT
>ask
> +Datatype p2.publish.product
>org.eclipse.equinox.internal.p2.publisher.ant.ProductPublisherTask
> +Datatype p2.repo2runnable
>org.eclipse.equinox.p2.internal.repository.tools.tasks.Repo2RunnableTask
> +Datatype p2.mirror
>org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorTask
> +Datatype p2.artifact.mirror
>org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorArtifactsTask
> +Datatype p2.metadata.mirror
>org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorMetadataTask
> +Datatype p2.composite.repository
>org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepository
>Task
> +Datatype p2.process.artifacts
>org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask
> +Datatype p2.remove.iu
>org.eclipse.equinox.p2.internal.repository.tools.tasks.RemoveIUTask
> +Datatype p2.composite.artifact.repository.validate
>org.eclipse.equinox.p2.internal.repository.tools.tasks.ValidateTask
> +Datatype p2.validate.artifacts
>org.eclipse.equinox.p2.internal.repository.tools.tasks.ValidateTask
> +Datatype p2.composite.artifact.repository.add
>org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepository
>Task
> +Datatype p2.composite.artifact.repository.create
>org.eclipse.equinox.p2.internal.repository.tools.tasks.CreateCompositeArti
>factRepositoryTask
> +Datatype p2.composite.artifact.repository.remove
>org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepository
>Task
> +Datatype help.buildHelpIndex
>org.eclipse.help.internal.base.ant.BuildHelpIndex
> +Datatype eclipse.checkDebugAttributes
>org.eclipse.jdt.core.CheckDebugAttributes
> +Datatype artifact
>org.eclipse.equinox.p2.internal.repository.tools.tasks.ArtifactDescription
>Adding reference: ant.projectHelper
>Adding reference: ant.parsing.context
>Adding reference: ant.targets
>parsing buildfile C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml with URI
>=
>file:/C:/AdobeSdks/FlexJS0.7Nighty/cordova-build.xml
>Setting ro project property: ant.project.name -> cordova-app
>Adding reference: cordova-app
>Setting ro project property: ant.project.default-target -> main
>Setting ro project property: ant.file.cordova-app ->
>C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml
>Setting ro project property: ant.file.type.cordova-app -> file
>Project base dir set to: C:\AdobeSdks\FlexJS0.7Nighty
> +Target:
> +Target: main
> +Target: makedir
> +Target: create
> +Target: compilejs
> +Target: purge
> +Target: copyfiles
> +Target: run
> +Target: clean
> +Target: super-clean
>Adding reference: ant.LocalProperties
>parsing buildfile
>jar:file:C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml
>with URI =
>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.
>Setting project property: env.HOMEDRIVE -> C:
>Setting project property: env.OPENSSL_CONF ->
>C:\OpenSSL-Win64\bin\openssl.cfg
>Setting project property: env.VISUALSVN_SERVER -> C:\Program
>Files\VisualSVN
>Server\
>Setting project property: env.PLAYERGLOBAL_HOME ->
>C:\AdobeSdks\FlexJS7\frameworks\libs\player
>Setting project property: env.FLEX_HOME -> C:\AdobeSdks\FlexJS0.7Nighty
>Setting project property: env.HOME -> C:\Users\maimoy
>Setting project property: env.HAXEPATH -> C:\HaxeToolkit\haxe\
>Setting project property: env.FP_NO_HOST_CHECK -> NO
>Setting project property: env.GPU_MAX_ALLOC_PERCENT -> 100
>Setting project property: env.VS120COMNTOOLS -> C:\Program Files
>(x86)\Microsoft Visual Studio 12.0\Common7\Tools\
>Setting project property: env.Path -> C:/Program Files/Adobe/Adobe Flash
>Builder 4.7 (64 Bit)/jre/bin/server;C:/Program Files/Adobe/Adobe Flash
>Builder 4.7 (64 Bit)/jre/bin;C:/Program Files/Adobe/Adobe Flash Builder
>4.7
>(64 Bit)/jre/lib/amd64;C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
>Bit)\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\S
>ystem32\WindowsPowerShell\v1.0\;C:\Program
>Files\Java\jdk1.8.0_40;C:\Program
>Files\Java\jdk1.8.0_40\bin;C:\Python27\;C:\Python27\Scripts;c:\Program
>Files
>(x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Program
>Files (x86)\MySQL\MySQL Utilities 1.4\;C:\Program Files (x86)\MySQL\MySQL
>Utilities 1.4\Doctrine extensions for PHP\;C:\Program Files\VisualSVN
>Server\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance
>Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program
>Files (x86)\Microsoft
>SDKs\TypeScript\1.0\;C:\apache-maven-3.2.3\bin;C:\Program Files
>(x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\NVIDIA
>Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program
>Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
>(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
>(x86)\Common Files\Acronis\SnapAPI\;C:\Program Files
>(x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files
>(x86)\Skype\Phone\;C:\Program Files (x86)\ActiveState Komodo IDE
>9\;C:\apache-ant-1.9.6\bin;C:\AdobeSdks\FlexJS0.7Nighty\js\bin;C:\Program
>Files\Adobe\Adobe Flash Builder 4.7 (64
>Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\bin;C:\P
>rogram
>Files\nodejs\;C:\HaxeToolkit\haxe\;C:\HaxeToolkit\neko;C:\Program
>Files\TortoiseGit\bin;C:\Program
>Files\Git\cmd;C:\Ruby22-x64\bin;C:\apache-ant-1.9.6\bin;C:\Users\maimoy\Ap
>pData\Roaming\npm;C:\Program
>Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Common
>Files\Acronis\TibMounter64;C:\Program Files\Adobe\Adobe Flash Builder 4.7
>(64 Bit);
>Setting project property: env.USERDOMAIN_ROAMINGPROFILE -> MAIMOYDELL-PC
>Setting project property: env.AIR_HOME -> C:\AdobeAIRSDK
>Setting project property: env.=:: -> ::\
>Setting project property: env.ProgramFiles -> C:\Program Files
>Setting project property: env.ProgramFiles(x86) -> C:\Program Files (x86)
>Setting project property: env.HerokuPath -> C:\Program Files (x86)\Heroku
>Setting project property: env.TEMP -> C:\Users\maimoy\AppData\Local\Temp
>Setting project property: env.ComSpec -> C:\Windows\system32\cmd.exe
>Setting project property: env.APPDATA -> C:\Users\maimoy\AppData\Roaming
>Setting project property: env.GOOG_HOME ->
>C:\Users\maimoy\AppData\Roaming\npm\node_modules\flexjs\js\lib\google\clos
>ure-library
>Setting project property: env.PUBLIC -> C:\Users\Public
>Setting project property: env.FLEXJS_INSTALLDIR ->
>C:\AdobeSdks\FlexJS0.7Nighty
>Setting project property: env.COMPUTERNAME -> MAIMOYDELL-PC
>Setting project property: env.NEKO_INSTPATH -> C:\HaxeToolkit\neko
>Setting project property: env.CommonProgramFiles -> C:\Program
>Files\Common
>Files
>Setting project property: env.JAVA_HOME -> C:\Program
>Files\Java\jdk1.8.0_40
>Setting project property: env.PSModulePath ->
>C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
>Setting project property: env.windir -> C:\Windows
>Setting project property: env.FLEXJSINSTALL_DIR ->
>C:\AdobeSdks\FlexJS0.7Nighty
>Setting project property: env.ProgramW6432 -> C:\Program Files
>Setting project property: env.LOGONSERVER -> \\MicrosoftAccount
>Setting project property: env.LOCALAPPDATA ->
>C:\Users\maimoy\AppData\Local
>Setting project property: env.PROCESSOR_REVISION -> 4501
>Setting project property: env.AIR_ANDROID_SDK_HOME -> C:\Program
>Files\Adobe\Adobe Flash Builder 4.7 (64
>Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK
>Setting project property: env.TLF_HOME -> C:\AdobeSdks\Apache Flex 4.15.0
>AIR 21\frameworks\projects
>Setting project property: env.ALLUSERSPROFILE -> C:\ProgramData
>Setting project property: env.USERDOMAIN -> MAIMOYDELL-PC
>Setting project property: env.FALCON_HOME -> C:\AdobeSdks\FlexJS0.7Nighty
>Setting project property: env.HOMEPATH -> \Users\maimoy
>Setting project property: env.VS110COMNTOOLS -> C:\Program Files
>(x86)\Microsoft Visual Studio 11.0\Common7\Tools\
>Setting project property: env.MAVEN_HOME -> C:\apache-maven-3.2.3\bin
>Setting project property: env.USERPROFILE -> C:\Users\maimoy
>Setting project property: env.NUMBER_OF_PROCESSORS -> 4
>Setting project property: env.CommonProgramFiles(x86) -> C:\Program Files
>(x86)\Common Files
>Setting project property: env.OS -> Windows_NT
>Setting project property: env.VBOX_MSI_INSTALL_PATH -> C:\Program
>Files\Oracle\VirtualBox\
>Setting project property: env.FLASHPLAYER_DEBUGGER -> C:\Program
>Files\Adobe\Flash Player Content Debugger\flashplayer_21_sa_debug.exe
>Setting project property: env.CommonProgramW6432 -> C:\Program
>Files\Common
>Files
>Setting project property: env.GTK_BASEPATH -> C:\Program Files
>(x86)\GtkSharp\2.12\
>Setting project property: env.SystemRoot -> C:\Windows
>Setting project property: env.ANDROID_HOME ->
>C:\Users\maimoy\AppData\Local\Android\sdk1
>Setting project property: env.ANT_OPTS -> -Djsse.enableSNIExtension=false
>Setting project property: env.TMP -> C:\Users\maimoy\AppData\Local\Temp
>Setting project property: env.ANT_HOME -> C:\apache-ant-1.9.6
>Setting project property: env.PROCESSOR_ARCHITECTURE -> AMD64
>Setting project property: env.PROCESSOR_LEVEL -> 6
>Setting project property: env.GPU_USE_SYNC_OBJECTS -> 1
>Setting project property: env.ProgramData -> C:\ProgramData
>Setting project property: env.SystemDrive -> C:
>Setting project property: env.ANDROID_NDK_PATH ->
>C:\Users\maimoy\Documents\Android\ndk\android-ndk-r8d
>Setting project property: env.PROCESSOR_IDENTIFIER -> Intel64 Family 6
>Model
>69 Stepping 1, GenuineIntel
>Setting project property: env.PATHEXT ->
>.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
>Setting project property: env.USERNAME -> maimoy
>Setting project property: env.SESSIONNAME -> Console
>Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader
>(parentFirst)
>Condition true; setting isWindows to windows
>Setting project property: isWindows -> windows
>Class org.apache.tools.ant.types.resources.selectors.Not loaded from
>parent
>loader (parentFirst)
>Class org.apache.tools.ant.taskdefs.condition.IsSet loaded from parent
>loader (parentFirst)
>Condition false; not setting projectdir
>Condition false; not setting platform
>Setting project property: directory.name -> Adobe
>Condition false; not setting appname
>Condition false; not setting cordova.executable
>Condition true; setting cordova.executable to cordova.cmd
>Setting project property: cordova.executable -> cordova.cmd
>Setting project property: cordova.target.dir ->
>C:\Users\maimoy\Adobe/app/DataBindingExample
> [available] Unable to find dir
>C:\Users\maimoy\Adobe\app\DataBindingExample to set property
>app.dir.exists
>Arguments: -d -Dprojectdir=C:\Users\maimoy\Adobe Flash Builder
>4.7\DataBindingExample -Dplatform=browser -Dappname=DataBindingExample
>-DTARGET_DIR=C:\Users\maimoy\Adobe Flash Builder 4.7\DataBindingExample
>-Dorg.eclipse.ant.core.ANT_PROCESS_ID=1466437833061
>Setting ro project property: ant.project.invoked-targets -> main
>Adding reference: eclipse.ant.targetVector
>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:
>Adding reference: eclipse.progress.monitor
> [mkdir] Created dir: C:\Users\maimoy\Adobe\app
>
>create:
>Adding reference: eclipse.progress.monitor
> [exec] Current OS is Windows NT (unknown)
> [exec] Executing 'cordova.cmd' with arguments:
> [exec] 'create'
> [exec] 'DataBindingExample'
> [exec]
> [exec] The ' characters around the executable and arguments are
> [exec] not part of the command.
>Execute:Java13CommandLauncher: Executing 'cordova.cmd' with arguments:
>'create'
>'DataBindingExample'
>
>The ' characters around the executable and arguments are
>not part of the command.
> [exec] Creating a new cordova project.
>Adding reference: eclipse.progress.monitor
> [echo] Adding in platform(s). This may take awhile.
>Adding reference: eclipse.progress.monitor
> [exec] Current OS is Windows NT (unknown)
> [exec] Executing 'cordova.cmd' with arguments:
> [exec] 'platform'
> [exec] 'add'
> [exec] 'browser'
> [exec]
> [exec] The ' characters around the executable and arguments are
> [exec] not part of the command.
>Execute:Java13CommandLauncher: Executing 'cordova.cmd' with arguments:
>'platform'
>'add'
>'browser'
>
>The ' characters around the executable and arguments are
>not part of the command.
> [exec] Adding browser project...
> [exec] Running command: cmd "/s /c
>"C:\Users\maimoy\.cordova\lib\npm_cache\cordova-browser\4.1.0\package\bin\
>create.bat
>C:\Users\maimoy\Adobe\app\DataBindingExample\platforms\browser
>io.cordova.hellocordova HelloCordova""
> [exec] Creating Browser project. Path: platforms\browser
> [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 browser
>
>compilejs:
>Adding reference: eclipse.progress.monitor
> [echo] Compiling FlexJS app
>Adding reference: eclipse.progress.monitor
> [exec] Current OS is Windows NT (unknown)
>
>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)
> at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> 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.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(Ec
>lipseDefaultExecutor.java:32)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
> at
>org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.
>java:663)
> at
>org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.
>java:496)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
> at
>org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$
>1.run(AntLaunchDelegate.java:298)
> at java.lang.Thread.run(Unknown Source)
>
>Total time: 55 seconds
>
>
>
>
>Thank you.
>
>
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cor
>dova-tp12866p12884.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
I downloaded yesterday the latest flexJS nighty build with apache flex sdk
installer. I didn't run any other installer. I had this latest sdk as
default in compiler settings page for the project, not default for flash
builder. I turned it to default and restart the flash builder with the same
errors.
I run the "FlexJS (Cordova Build)" from
"C:\AdobeSdks\FlexJS0.7Nighty/cordova-build.xml" with parameters
-d -Dprojectdir=${project_loc} -Dplatform=browser
-Dappname=DataBindingExample -DTARGET_DIR="C:\Users\maimoy\Adobe Flash
Builder 4.7\DataBindingExample"
with the following output in flash builder console window.
Apache Ant(TM) version 1.9.6 compiled on June 29 2015
Unknown target: Flash
Unknown target: Builder
Unknown target: 4.7\DataBindingExample
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
+Datatype eclipse.refreshLocal
org.eclipse.core.resources.ant.RefreshLocalTask
+Datatype p2.director org.eclipse.equinox.p2.director.app.ant.DirectorTask
+Datatype eclipse.jarProcessor
org.eclipse.equinox.internal.p2.jarprocessor.ant.JarProcessorTask
+Datatype p2.composite.metadata.repository.add
org.eclipse.equinox.internal.p2.metadata.repository.ant.AddChildTask
+Datatype p2.composite.metadata.repository.create
org.eclipse.equinox.internal.p2.metadata.repository.ant.CreateCompositeMetadataRepositoryTask
+Datatype p2.composite.metadata.repository.remove
org.eclipse.equinox.internal.p2.metadata.repository.ant.RemoveChildTask
+Datatype p2.publisher
org.eclipse.equinox.internal.p2.publisher.ant.PublisherTask
+Datatype p2.publish.featuresAndBundles
org.eclipse.equinox.internal.p2.publisher.ant.FeaturesAndBundlesPublisherTask
+Datatype p2.publish.product
org.eclipse.equinox.internal.p2.publisher.ant.ProductPublisherTask
+Datatype p2.repo2runnable
org.eclipse.equinox.p2.internal.repository.tools.tasks.Repo2RunnableTask
+Datatype p2.mirror
org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorTask
+Datatype p2.artifact.mirror
org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorArtifactsTask
+Datatype p2.metadata.mirror
org.eclipse.equinox.p2.internal.repository.tools.tasks.MirrorMetadataTask
+Datatype p2.composite.repository
org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepositoryTask
+Datatype p2.process.artifacts
org.eclipse.equinox.p2.internal.repository.tools.tasks.ProcessRepoTask
+Datatype p2.remove.iu
org.eclipse.equinox.p2.internal.repository.tools.tasks.RemoveIUTask
+Datatype p2.composite.artifact.repository.validate
org.eclipse.equinox.p2.internal.repository.tools.tasks.ValidateTask
+Datatype p2.validate.artifacts
org.eclipse.equinox.p2.internal.repository.tools.tasks.ValidateTask
+Datatype p2.composite.artifact.repository.add
org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepositoryTask
+Datatype p2.composite.artifact.repository.create
org.eclipse.equinox.p2.internal.repository.tools.tasks.CreateCompositeArtifactRepositoryTask
+Datatype p2.composite.artifact.repository.remove
org.eclipse.equinox.p2.internal.repository.tools.tasks.CompositeRepositoryTask
+Datatype help.buildHelpIndex
org.eclipse.help.internal.base.ant.BuildHelpIndex
+Datatype eclipse.checkDebugAttributes
org.eclipse.jdt.core.CheckDebugAttributes
+Datatype artifact
org.eclipse.equinox.p2.internal.repository.tools.tasks.ArtifactDescription
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml with URI =
file:/C:/AdobeSdks/FlexJS0.7Nighty/cordova-build.xml
Setting ro project property: ant.project.name -> cordova-app
Adding reference: cordova-app
Setting ro project property: ant.project.default-target -> main
Setting ro project property: ant.file.cordova-app ->
C:\AdobeSdks\FlexJS0.7Nighty\cordova-build.xml
Setting ro project property: ant.file.type.cordova-app -> file
Project base dir set to: C:\AdobeSdks\FlexJS0.7Nighty
+Target:
+Target: main
+Target: makedir
+Target: create
+Target: compilejs
+Target: purge
+Target: copyfiles
+Target: run
+Target: clean
+Target: super-clean
Adding reference: ant.LocalProperties
parsing buildfile
jar:file:C:/apache-ant-1.9.6/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
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.
Setting project property: env.HOMEDRIVE -> C:
Setting project property: env.OPENSSL_CONF ->
C:\OpenSSL-Win64\bin\openssl.cfg
Setting project property: env.VISUALSVN_SERVER -> C:\Program Files\VisualSVN
Server\
Setting project property: env.PLAYERGLOBAL_HOME ->
C:\AdobeSdks\FlexJS7\frameworks\libs\player
Setting project property: env.FLEX_HOME -> C:\AdobeSdks\FlexJS0.7Nighty
Setting project property: env.HOME -> C:\Users\maimoy
Setting project property: env.HAXEPATH -> C:\HaxeToolkit\haxe\
Setting project property: env.FP_NO_HOST_CHECK -> NO
Setting project property: env.GPU_MAX_ALLOC_PERCENT -> 100
Setting project property: env.VS120COMNTOOLS -> C:\Program Files
(x86)\Microsoft Visual Studio 12.0\Common7\Tools\
Setting project property: env.Path -> C:/Program Files/Adobe/Adobe Flash
Builder 4.7 (64 Bit)/jre/bin/server;C:/Program Files/Adobe/Adobe Flash
Builder 4.7 (64 Bit)/jre/bin;C:/Program Files/Adobe/Adobe Flash Builder 4.7
(64 Bit)/jre/lib/amd64;C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files\Java\jdk1.8.0_40;C:\Program
Files\Java\jdk1.8.0_40\bin;C:\Python27\;C:\Python27\Scripts;c:\Program Files
(x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;C:\Program
Files (x86)\MySQL\MySQL Utilities 1.4\;C:\Program Files (x86)\MySQL\MySQL
Utilities 1.4\Doctrine extensions for PHP\;C:\Program Files\VisualSVN
Server\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance
Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program
Files (x86)\Microsoft
SDKs\TypeScript\1.0\;C:\apache-maven-3.2.3\bin;C:\Program Files
(x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\NVIDIA
Corporation\PhysX\Common;C:\Program Files\TortoiseSVN\bin;C:\Program
Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files
(x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files
(x86)\Common Files\Acronis\SnapAPI\;C:\Program Files
(x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files
(x86)\Skype\Phone\;C:\Program Files (x86)\ActiveState Komodo IDE
9\;C:\apache-ant-1.9.6\bin;C:\AdobeSdks\FlexJS0.7Nighty\js\bin;C:\Program
Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK\bin;C:\Program
Files\nodejs\;C:\HaxeToolkit\haxe\;C:\HaxeToolkit\neko;C:\Program
Files\TortoiseGit\bin;C:\Program
Files\Git\cmd;C:\Ruby22-x64\bin;C:\apache-ant-1.9.6\bin;C:\Users\maimoy\AppData\Roaming\npm;C:\Program
Files (x86)\Microsoft VS Code\bin;C:\Program Files (x86)\Common
Files\Acronis\TibMounter64;C:\Program Files\Adobe\Adobe Flash Builder 4.7
(64 Bit);
Setting project property: env.USERDOMAIN_ROAMINGPROFILE -> MAIMOYDELL-PC
Setting project property: env.AIR_HOME -> C:\AdobeAIRSDK
Setting project property: env.=:: -> ::\
Setting project property: env.ProgramFiles -> C:\Program Files
Setting project property: env.ProgramFiles(x86) -> C:\Program Files (x86)
Setting project property: env.HerokuPath -> C:\Program Files (x86)\Heroku
Setting project property: env.TEMP -> C:\Users\maimoy\AppData\Local\Temp
Setting project property: env.ComSpec -> C:\Windows\system32\cmd.exe
Setting project property: env.APPDATA -> C:\Users\maimoy\AppData\Roaming
Setting project property: env.GOOG_HOME ->
C:\Users\maimoy\AppData\Roaming\npm\node_modules\flexjs\js\lib\google\closure-library
Setting project property: env.PUBLIC -> C:\Users\Public
Setting project property: env.FLEXJS_INSTALLDIR ->
C:\AdobeSdks\FlexJS0.7Nighty
Setting project property: env.COMPUTERNAME -> MAIMOYDELL-PC
Setting project property: env.NEKO_INSTPATH -> C:\HaxeToolkit\neko
Setting project property: env.CommonProgramFiles -> C:\Program Files\Common
Files
Setting project property: env.JAVA_HOME -> C:\Program Files\Java\jdk1.8.0_40
Setting project property: env.PSModulePath ->
C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
Setting project property: env.windir -> C:\Windows
Setting project property: env.FLEXJSINSTALL_DIR ->
C:\AdobeSdks\FlexJS0.7Nighty
Setting project property: env.ProgramW6432 -> C:\Program Files
Setting project property: env.LOGONSERVER -> \\MicrosoftAccount
Setting project property: env.LOCALAPPDATA -> C:\Users\maimoy\AppData\Local
Setting project property: env.PROCESSOR_REVISION -> 4501
Setting project property: env.AIR_ANDROID_SDK_HOME -> C:\Program
Files\Adobe\Adobe Flash Builder 4.7 (64
Bit)\eclipse\plugins\com.adobe.flash.compiler_4.7.0.349722\AIRSDK
Setting project property: env.TLF_HOME -> C:\AdobeSdks\Apache Flex 4.15.0
AIR 21\frameworks\projects
Setting project property: env.ALLUSERSPROFILE -> C:\ProgramData
Setting project property: env.USERDOMAIN -> MAIMOYDELL-PC
Setting project property: env.FALCON_HOME -> C:\AdobeSdks\FlexJS0.7Nighty
Setting project property: env.HOMEPATH -> \Users\maimoy
Setting project property: env.VS110COMNTOOLS -> C:\Program Files
(x86)\Microsoft Visual Studio 11.0\Common7\Tools\
Setting project property: env.MAVEN_HOME -> C:\apache-maven-3.2.3\bin
Setting project property: env.USERPROFILE -> C:\Users\maimoy
Setting project property: env.NUMBER_OF_PROCESSORS -> 4
Setting project property: env.CommonProgramFiles(x86) -> C:\Program Files
(x86)\Common Files
Setting project property: env.OS -> Windows_NT
Setting project property: env.VBOX_MSI_INSTALL_PATH -> C:\Program
Files\Oracle\VirtualBox\
Setting project property: env.FLASHPLAYER_DEBUGGER -> C:\Program
Files\Adobe\Flash Player Content Debugger\flashplayer_21_sa_debug.exe
Setting project property: env.CommonProgramW6432 -> C:\Program Files\Common
Files
Setting project property: env.GTK_BASEPATH -> C:\Program Files
(x86)\GtkSharp\2.12\
Setting project property: env.SystemRoot -> C:\Windows
Setting project property: env.ANDROID_HOME ->
C:\Users\maimoy\AppData\Local\Android\sdk1
Setting project property: env.ANT_OPTS -> -Djsse.enableSNIExtension=false
Setting project property: env.TMP -> C:\Users\maimoy\AppData\Local\Temp
Setting project property: env.ANT_HOME -> C:\apache-ant-1.9.6
Setting project property: env.PROCESSOR_ARCHITECTURE -> AMD64
Setting project property: env.PROCESSOR_LEVEL -> 6
Setting project property: env.GPU_USE_SYNC_OBJECTS -> 1
Setting project property: env.ProgramData -> C:\ProgramData
Setting project property: env.SystemDrive -> C:
Setting project property: env.ANDROID_NDK_PATH ->
C:\Users\maimoy\Documents\Android\ndk\android-ndk-r8d
Setting project property: env.PROCESSOR_IDENTIFIER -> Intel64 Family 6 Model
69 Stepping 1, GenuineIntel
Setting project property: env.PATHEXT ->
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW
Setting project property: env.USERNAME -> maimoy
Setting project property: env.SESSIONNAME -> Console
Class org.apache.tools.ant.taskdefs.condition.Os loaded from parent loader
(parentFirst)
Condition true; setting isWindows to windows
Setting project property: isWindows -> windows
Class org.apache.tools.ant.types.resources.selectors.Not loaded from parent
loader (parentFirst)
Class org.apache.tools.ant.taskdefs.condition.IsSet loaded from parent
loader (parentFirst)
Condition false; not setting projectdir
Condition false; not setting platform
Setting project property: directory.name -> Adobe
Condition false; not setting appname
Condition false; not setting cordova.executable
Condition true; setting cordova.executable to cordova.cmd
Setting project property: cordova.executable -> cordova.cmd
Setting project property: cordova.target.dir ->
C:\Users\maimoy\Adobe/app/DataBindingExample
[available] Unable to find dir
C:\Users\maimoy\Adobe\app\DataBindingExample to set property app.dir.exists
Arguments: -d -Dprojectdir=C:\Users\maimoy\Adobe Flash Builder
4.7\DataBindingExample -Dplatform=browser -Dappname=DataBindingExample
-DTARGET_DIR=C:\Users\maimoy\Adobe Flash Builder 4.7\DataBindingExample
-Dorg.eclipse.ant.core.ANT_PROCESS_ID=1466437833061
Setting ro project property: ant.project.invoked-targets -> main
Adding reference: eclipse.ant.targetVector
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:
Adding reference: eclipse.progress.monitor
[mkdir] Created dir: C:\Users\maimoy\Adobe\app
create:
Adding reference: eclipse.progress.monitor
[exec] Current OS is Windows NT (unknown)
[exec] Executing 'cordova.cmd' with arguments:
[exec] 'create'
[exec] 'DataBindingExample'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'cordova.cmd' with arguments:
'create'
'DataBindingExample'
The ' characters around the executable and arguments are
not part of the command.
[exec] Creating a new cordova project.
Adding reference: eclipse.progress.monitor
[echo] Adding in platform(s). This may take awhile.
Adding reference: eclipse.progress.monitor
[exec] Current OS is Windows NT (unknown)
[exec] Executing 'cordova.cmd' with arguments:
[exec] 'platform'
[exec] 'add'
[exec] 'browser'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'cordova.cmd' with arguments:
'platform'
'add'
'browser'
The ' characters around the executable and arguments are
not part of the command.
[exec] Adding browser project...
[exec] Running command: cmd "/s /c
"C:\Users\maimoy\.cordova\lib\npm_cache\cordova-browser\4.1.0\package\bin\create.bat
C:\Users\maimoy\Adobe\app\DataBindingExample\platforms\browser
io.cordova.hellocordova HelloCordova""
[exec] Creating Browser project. Path: platforms\browser
[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 browser
compilejs:
Adding reference: eclipse.progress.monitor
[echo] Compiling FlexJS app
Adding reference: eclipse.progress.monitor
[exec] Current OS is Windows NT (unknown)
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:511)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:494)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:663)
at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:496)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:378)
at
org.eclipse.ant.internal.launching.launchConfigurations.AntLaunchDelegate$1.run(AntLaunchDelegate.java:298)
at java.lang.Thread.run(Unknown Source)
Total time: 55 seconds
Thank you.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12884.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Peter Ent <pe...@adobe.com>.
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=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" <an...@gmail.com> 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=C:\\AdobeAIRSDK
>env.FALCON_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
>env.FALCONJX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
>env.FLASHPLAYER_DEBUGGER=C:\\Program Files\\Adobe\\Flash Player Content
>Debugger\\flashplayer_21_sa_debug.exe
>env.FLEX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
>env.GOOG_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty\\js\\lib\\google\\closure-lib
>rary
>env.PLAYERGLOBAL_HOME=C:\\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 =
>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 =
>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]
> [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]
>
>compilejs:
> [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.
>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=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
>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
>org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
> at
>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=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
>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.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
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:511)
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=C:\\AdobeAIRSDK
env.FALCON_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.FALCONJX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.FLASHPLAYER_DEBUGGER=C:\\Program Files\\Adobe\\Flash Player Content
Debugger\\flashplayer_21_sa_debug.exe
env.FLEX_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty
env.GOOG_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty\\js\\lib\\google\\closure-library
env.PLAYERGLOBAL_HOME=C:\\AdobeSdks\\FlexJS0.7Nighty\\frameworks\\libs\\player
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 =
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 =
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]
[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]
compilejs:
[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.
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=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
org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.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 org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at 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(DelegatingMethodAccessorImpl.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=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 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-Cordova-tp12866p12880.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Alex Harui <ah...@adobe.com>.
Excellent. Let us know how it turns out.
-Alex
On 6/19/16, 1:59 PM, "maimoy" <an...@gmail.com> wrote:
>Ok I resolve the ViewBase error, by looking in the examples in latest
>FlexJS
>and changing code from ViewBase to View and also in ViewBaseDataBinding to
>ViewDataBinding.
>
>I am checking the cordova solution now if it works.
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cor
>dova-tp12866p12875.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
Ok I resolve the ViewBase error, by looking in the examples in latest FlexJS
and changing code from ViewBase to View and also in ViewBaseDataBinding to
ViewDataBinding.
I am checking the cordova solution now if it works.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12875.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
I have download the latest FlexJS 0.7.0 FP21.0 AIR21.0 en_US (build 20160619)
and now a new problem appeared in this line
<js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"...
1450: This tag could not be resolved to an ActionScript class. It will be
ignored.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12874.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Alex Harui <ah...@adobe.com>.
On 6/18/16, 6:35 AM, "maimoy" <an...@gmail.com> wrote:
>I am using the FlexJS 0.7 downloaded from 20-5-2016. I am referring this
>because I don't know if there is a newer version.
Please try the latest nightly. It gets built every night and bugs have
definitely been fixed in June.
Make sure you have a JAVA_HOME environment variable set or are set up so
that "where java" from the command line finds Java. Post a link to the
installer.log from the Installer if there are still problems.
Thanks,
-Alex
Re: HOW TO About FlexJS and Cordova
Posted by maimoy <an...@gmail.com>.
I am using the FlexJS 0.7 downloaded from 20-5-2016. I am referring this
because I don't know if there is a newer version. When I am running the ant
within Flash builder it does't do anything not even any error appeared in
the console. When I am going into the project folder that has the
./src/<APP>.mxml ./bin/js-debug and ./app/<APP> folders as they appeared
in comments in cordova-build.xml and running the comand:
C:\Users\maimoy\Adobe Flash Builder 4.7\MyFirstFlexJS>ant -f
cordova-build.xml
Buildfile: C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\cordova-build.xml
makedir:
create:
compilejs:
[echo] Compiling FlexJS app
BUILD FAILED
C:\Users\maimoy\Adobe Flash Builder 4.7\MyFirstFlexJS\cordova-build.xml:94:
Execute failed: java.io.IOException: Cannot run progr
am "mxmlc" (in directory "C:\Users\maimoy\Adobe Flash Builder
4.7\MyFirstFlexJS\src"): CreateProcess 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
org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.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 org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:670)
at 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(DelegatingMethodAccessorImpl.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=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
Total time: 0 seconds
Is there any parameters or setting that must be applied to ant command like
the parameters needed for cordova-build.xml downloaded with npm flexjs that
needs -DPROJECT_NAME, -DTARGET_DIR and -DPROJECT_DIR ?
Are they need any environment parameters for the Windows 8.1 environment
that I am using?
Thank you.
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cordova-tp12866p12869.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.
Re: HOW TO About FlexJS and Cordova
Posted by Alex Harui <ah...@adobe.com>.
Try the 0.7.0 nightly and tell us what kind of errors you are getting
following the wiki page or what is confusing about the wiki page.
Thanks,
-Alex
On 6/17/16, 5:53 PM, "maimoy" <an...@gmail.com> wrote:
>Can anybody give some help about the details of how it can be build a
>project
>with flexjs and then create the cordova project within flash builder?
>I can do that with the demo project only by using the ant command and only
>using the cordova-build.xml from the flexjs package downloaded with npm.
>The config-build.xml files that are included in FlexJS 0.6 and nighty
>build
>0.7 are quite different and i can't make them work. Also in this page
>https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=63406558
>titled as "Creating an Apache Cordova™ Application with FlexJS™ and Flash
>Builder" in section "Building the Application" how can be imported these
>two
>ant configurations FlexJS (Cordova Run) and FlexJS (Cordova Build) are
>presented in the menu without enough details how can this achieved. Which
>cordova-build.xml need to be imported from npm flexjs installation or from
>the downloads for FlexJS 0.6 of FlexJS 0.7?
>
>Any more detailed help for these steps it should be quite helpful
>because i
>have try all these step be step and i didn't make it work through flash
>builder.
>What the differences between flexjs downloaded from npm and the flexjs
>sdks
>that can be downloaded with apache flex installer?
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/HOW-TO-About-FlexJS-and-Cor
>dova-tp12866.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.