You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by piotrz <pi...@gmail.com> on 2017/04/11 13:46:47 UTC

Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

Hi Davide,

What version of FlexJS are you using ? I really recommend use FlexJS 0.8
Nightly, cause it contains bunch of changes and fixes.

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJs-Error-Unable-to-access-jarfile-flex-asjs-js-bin-lib-mxmlc-jar-tp15019p15020.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

Posted by Alex Harui <ah...@adobe.com>.
Ah, sorry, I think I get it now.

The scripts in flex-asjs are meant to be used in a FlexJS SDK, where the
install script has combined flex-asjs and flex-falcon (and flex-typedefs)
under a single folder.

But when using just the repos, I don't use those scripts.  Most of what I
do is test the examples and each examples has its own Ant and Maven script.

When testing your own app against the repos, I believe it will just work
in Maven because the Maven build will put the compiler artifacts in the
local Maven repository.

There are Ant targets "compile", "compile-js" and "compile-js-release"
that I use when compiling a custom app.  To use "compile" you would use:

  ant compile -Dfile=<path to MXML or AS file>

I believe other folks are using the Installer to install a nightly build
and then manually copy jars from the working copies to the right places.
On Linux, the Installer doesn't work, but you should be able to download a
nightly build from [1], expand it, and use:

  ant -f installer.xml

to create the FlexJS SDK and then copy in files from the working copies.

HTH,
-Alex

[1] 
http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/lastSuccessfulBuild/
artifact/out/apache-flex-flexjs-0.8.0-bin.tar.gz

On 4/12/17, 12:04 AM, "davide.prina@lispa.it" <da...@lispa.it>
wrote:

>Hi Alex, 
>
>Alex Harui ha scritto:
>
>> Did you run "ant all" instead of just "ant" in flex-falcon?
>
>No, I have run
>
>$ ant main
>$ ant jx
>
>not with
>$ ant all
>
>I have the .jar in the correct place.
>
>Thanks
>Davide


Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

Posted by da...@lispa.it.
Hi Alex, 

Alex Harui ha scritto:

> Did you run "ant all" instead of just "ant" in flex-falcon?

No, I have run

$ ant main
$ ant jx

not with
$ ant all

I have the .jar in the correct place.

Thanks
Davide

Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

Posted by Alex Harui <ah...@adobe.com>.
Hi Davide,

Did you run "ant all" instead of just "ant" in flex-falcon?

HTH,
-Alex

On 4/11/17, 7:50 AM, "davide.prina@lispa.it" <da...@lispa.it> wrote:

>Hi Piotrz, 
>
>piotrz ha scritto:
>
>> What version of FlexJS are you using ? I really recommend use FlexJS 0.8
>
>I have take all from git repository few day ago
>So I think I have the last version of each component.
>FlexJS is 0.8
>
>Probably don't have I run/download something?
>
>I have found a lot of error during compiling process.
>EG:
>* a directory name is wrong (it search jQuery, but it is JQuery... I
>solved with a simbolic link)
>* the camera task try to use a function that was introduced in the 11.2
>version of flash, but the installation use the 11.1 (I have commented the
>line... for now)
>
>Ciao
>Davide


Re: [FlexJs]: Error: Unable to access jarfile flex-asjs/js/bin/../lib/mxmlc.jar

Posted by da...@lispa.it.
Hi Piotrz, 

piotrz ha scritto:

> What version of FlexJS are you using ? I really recommend use FlexJS 0.8

I have take all from git repository few day ago
So I think I have the last version of each component.
FlexJS is 0.8

Probably don't have I run/download something?

I have found a lot of error during compiling process. 
EG:
* a directory name is wrong (it search jQuery, but it is JQuery... I solved with a simbolic link)
* the camera task try to use a function that was introduced in the 11.2 version of flash, but the installation use the 11.1 (I have commented the line... for now)

Ciao
Davide