You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by "patrizia.bellitto" <pa...@st.com> on 2017/05/15 13:38:01 UTC

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Hello Davide,
I have your same issue: the mxmlc.jar does not exist inside the directory
js/lib, so I copied all the the content from the lib, but now the error
changes to  command line: Error: unknown configuration variable
'js-output-type'.

Were you able to fix it?

Thanks
Patrizia



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15233.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by piotrz <pi...@gmail.com>.
Hi Patrizia,

Well you can use Flash Builder as your code editor, but still use Maven to
build your project. Simple create your hello world using this instruction
[1] and let us know whether you were able to build it.

[1]
https://cwiki.apache.org/confluence/display/FLEX/Create+A+FlexJS+Project+with+Maven

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15258.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
THanks Alex,
I'm at the beginning of my day so I'll try and I'll let you know!



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15271.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Alex,
I'm uploading here the log files: the first one with error from the Google
Code library, the second one after having corrected the link  logs.zip
<http://apache-flex-users.2333346.n4.nabble.com/file/n15272/logs.zip>  
I downloaded the js folder from the location you suggested me, but there is
no mxmlc.jar inside js/lib, so the compilation failed again.
Then I copied a complete lib folder from a successful installation on MacOS,
and now the error is this:

Using Flex SDK: C:\flexJS\apache-flex-flexjs-0.7.0-bin
using FlashBuilder Project Files
FlashBuilder settings:
    -locale
    @locale@
    -source-path+=C:\flexJS\DataBindingExample/src
    -compiler.accessible=true
    -output=C:\flexJS\DataBindingExample/bin-release/DataBindingExample.swf
    -library-path+=C:\flexJS\DataBindingExample/libs
    -js-output-type=FLEXJS
   
-sdk-js-lib=C:\flexJS\apache-flex-flexjs-0.7.0-bin\frameworks\js\FlexJS\generated-sources
    -debug=false
    -fb
    C:\flexJS\DataBindingExample/src/DataBindingExample.mxml
Exception in thread "main" java.lang.UnsupportedClassVersionError:
com/google/javascript/jscomp/ErrorManager : Unsupported major.minor version
51.0
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$000(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at
org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend.createPublisher(MXMLFlexJSBackend.java:129)
	at
org.apache.flex.compiler.internal.driver.mxml.flexjs.MXMLFlexJSBackend.createPublisher(MXMLFlexJSBackend.java:63)
	at org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:432)
	at org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:352)
	at org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:277)
	at
org.apache.flex.compiler.clients.MXMLJSC.staticMainNoExit(MXMLJSC.java:236)
	at org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:177)



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15272.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

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

That's great news!  Thanks for trying FlexJS.

-Alex

On 5/25/17, 7:41 AM, "patrizia.bellitto" <pa...@st.com> wrote:

>Hi Alex,
>from the URL you sent me I found the 0.8.0 bin package, I downloaded it
>and
>built with Ant...
>now everything works perfectly even through FlashBuilder, thanks!
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2FFlexJS-maven-compiled-from-source-but-sett
>ings-and-lib-missing-tp15045p15273.html&data=02%7C01%7C%7Cdbf9ac5192e9477b
>092a08d4a37e190f%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636313209357
>590551&sdata=ic3mfkj9EuKxnjrOOoyAGr4uiIiphXqQ6GWRDQzR3iY%3D&reserved=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Alex,
from the URL you sent me I found the 0.8.0 bin package, I downloaded it and
built with Ant...
now everything works perfectly even through FlashBuilder, thanks!



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15273.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

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

Can you post a link to the entire console output of the installer script?
I want to see where it is picking up the falconjx binary. It might be that
it is getting some version that doesn't have the js/libs swcs.

I'm at the end of my day, so I will look at the output tomorrow.

It occurred to me that you can try just sticking the SWCs in js/libs from
here:  http://apacheflexbuild.cloudapp.net:8080/job/flex-asjs/ws/js/libs/

I think that link is public.

Thanks,
-Alex

On 5/24/17, 11:59 PM, "patrizia.bellitto" <pa...@st.com> wrote:

>Hi Alex,
>it's exactly what I did. Moreover I added the proxy configuration inside
>the
>installer.xml file (we are behind  proxy with authentication here) and I
>changed, inside one of the downloads.xml files, the URL of svg.js
>GoogleCode
>Library script, that is obsolete and returns 404 error.
>After these modifications, everything is built successfully. I'm able to
>configure the SDK and the launch configurations in Flash Builder, create a
>new project and convert it to a FlexJS Project.
>I can build and run as a classic Flash web application but I can't debug
>and
>release with the FalconJX compiler because of the errors I told you before
>(/js/libs folder and something else is missing).
>
>Thanks again
>Patrizia
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2FFlexJS-maven-compiled-from-source-but-sett
>ings-and-lib-missing-tp15045p15269.html&data=02%7C01%7C%7Cb193a1db869f4cf1
>532008d4a33d9f72%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636312932472
>236197&sdata=NBMJBRUdpkuZemCqVudE850LGRyWExewUI%2FSWW%2Fg6qY%3D&reserved=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Alex,
it's exactly what I did. Moreover I added the proxy configuration inside the
installer.xml file (we are behind  proxy with authentication here) and I
changed, inside one of the downloads.xml files, the URL of svg.js GoogleCode
Library script, that is obsolete and returns 404 error.
After these modifications, everything is built successfully. I'm able to
configure the SDK and the launch configurations in Flash Builder, create a
new project and convert it to a FlexJS Project. 
I can build and run as a classic Flash web application but I can't debug and
release with the FalconJX compiler because of the errors I told you before
(/js/libs folder and something else is missing).

Thanks again
Patrizia



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15269.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

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

Just to be clear, did you run "ant -f installer.xml" after downloading and
expanding the binary package?  That is required to bring everything else
that you need.  If you did that and it didn't do the right thing, I will
take a look at it myself.

Thanks,
-Alex

On 5/24/17, 1:24 AM, "patrizia.bellitto" <pa...@st.com> wrote:

>Hi Alex, I'm using Ant by downloading the binary package, not the sources.
>I tried many times and, after the installation, the directory /js/libs is
>missing, so I can't compile to HTML/Javascript from both FlashBuilder and
>IntelliJ IDEA.
>Is there any way to obtain these missing libraries? I need to test the
>compilation to HTML/Js so we'd like to migrate an existing Flash
>application...
>Thanks a lot for your support!
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2FFlexJS-maven-compiled-from-source-but-sett
>ings-and-lib-missing-tp15045p15259.html&data=02%7C01%7C%7C8f96e20dfa714346
>578308d4a2804f28%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636312119348
>080662&sdata=Jx0uyMVu4o9IhC9Y%2FPffN7wXhapNCYqbtqTakvV8uSU%3D&reserved=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by piotrz <pi...@gmail.com>.
Patrizia,

Thanks for explanation now I understand. That's good that you are trying to
separate logic, if that logic is going to be separate swc - Maybe you should
try to create for such module build plan - separate pom.xml. etc. but that's
something for the later work.

1) If you are not going change SDK itself you don't have to have it
buildable on your machine, but since you reach this point that's good
2) If you wanted to just use FlexJS SDK, start from building simple "hello
world" [1] and let us know how it goes.
3) Once you will be able to build "hello world" - I can share with you some
"pom.xml" example which you will be able to change and build your library to
FlexJS "swc"
4) Create build plan for your main application based on "hello world" app
from point 1. and use created swc

Thanks to above steps you will have whole build system which is independent
from IDE. 

As for feeding IDE you will have your own "distribution" package or just
downloaded by "Apache Flex Installer" package which has been build by Ant on
Jenkins.


[1]
https://cwiki.apache.org/confluence/display/FLEX/Create+A+FlexJS+Project+with+Maven

Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15264.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Piotr,
since 2007 we have been developing a quite big web application used to
simulate a wide range of designs showing our products (power converters, LED
lighting and so on). 
You can have a look here: https://my.st.com/analogsimulator

We know that the UI must be completely reviewed...but we have a lot of code
containing only the "engines" that allow to simulate the application, so, as
we need to remove the Flash player and move to HTML5/Javascript
technologies, it would be very useful if we could avoid to rewrite these
modules.

I'm working right now to well separate logic from the UI, and build these
engines through FlexJS.
Your support is very appreciated, thanks!
Patrizia




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15263.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by piotrz <pi...@gmail.com>.
Patrizia,

I'm not sure whether "distribution" package produced by Maven is fully ready
for usage to build some  project, cause there are missing things. I'm treat
"distribution" as something which I can use to my IDE for intellisence and
visibility if I added some new things to FlexJS SDK. - We need to fix this
issue, but that's something which I hope I will take over.

But you are in a good path. My first proposition is to try create and build
Hello World - I did post you how to do this by Maven.

I would like to understand what kind of Flex project you have? Cause you are
saying about converting old Flex project to FlexJS. First of all you will be
able to build using FlexJS only your business logic which DO NOT HAVE any
dependency to Flash/Flex. Your UI part need to be rewritten to using FlexJS
Basic/Express components or FlexJS MDL library (Google Material Design
Library). 

Can you explain more what are you going to achieve ?

Thanks,
Piotr



-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15262.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Yes, you are right, I added the distribution command without any issue and
used that distributionTargetFolder inside Flash Builder 4.7.
THe problem here is when I launch the configuration to convert the simple
Flex project to FlexJS:

The file does not exist for the external tool named Convert New Flex Project
to FlexJS MVC Project.

Thanks
Patrizia



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15261.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by piotrz <pi...@gmail.com>.
Hi Patrizia,

If ANT -installer is for some reason is broken for you I saw that you were
able to build on your own FlexJS SDK by Maven on Mac OSX - YES ? Using
distribution command ? "mvn -s settings-template.xml
-DdistributionTargetFolder={pathToDistributionDirectory} -P
build-distribution clean install "

Just wanted to confirm where you are right now.

Thanks,
Piotr





-----
Apache Flex PMC
piotrzarzycki21@gmail.com
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15260.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Alex, I'm using Ant by downloading the binary package, not the sources.
I tried many times and, after the installation, the directory /js/libs is
missing, so I can't compile to HTML/Javascript from both FlashBuilder and
IntelliJ IDEA.
Is there any way to obtain these missing libraries? I need to test the
compilation to HTML/Js so we'd like to migrate an existing Flash
application...
Thanks a lot for your support!



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15259.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

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

If you are using Ant to build something from sources to be used in an IDE
like Flash Builder, you will need to run "ant release -Dnightly=true"
which will create artifacts in the "out" folder that you then expand into
an empty folder and run "ant -f installer.xml"

I'm not sure we've got all of the kinds worked out from the Maven build
for making an IDE compatible package.

Thanks,
-Alex

On 5/23/17, 6:25 AM, "patrizia.bellitto" <pa...@st.com> wrote:

>Hi Christofer,
>I was able to compile everything both with Maven and Ant on MacOS.
>Then I followed the instructions to use FlexJS within Flash Builder 4.7
>(https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.ap
>ache.org%2Fconfluence%2Fdisplay%2FFLEX%2FUsing%2BFlexJS%2Bwith%2BAdobe%2BF
>lash%2BBuilder&data=02%7C01%7C%7Ca62f1553c936422716d308d4a1e12bbf%7Cfa7b1b
>5a7b34438794aed2c178decee1%7C0%7C0%7C636311435863437429&sdata=MGdZsy3kLDBZ
>C7n4KORLLbMaocm140e21uEKLBiO0mA%3D&reserved=0).
>
>
>The release 0.8.0 I build through Maven returns this error when converting
>the simple Flex project to FlexJS project:
>
>The file does not exist for the external tool named Convert New Flex
>Project
>to FlexJS MVC Project.
>
>while with the release 0.7.0 compiled with Ant I can convert the project
>to
>a FlexJS project, but, trying to launch the Falcon JX release and build
>configuration the error is:
>
>Using Falcon codebase:
>/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../..
>Using Flex SDK:
>/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../..
>Error: Unable to access jarfile
>/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../lib/mxmlc
>.jar
>
>
>that is the same problem I had on Windows.
>I'm using the latest releases of Maven and Ant.
>
>Thanks
>Patrizia
>
>
>
>--
>View this message in context:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2FFlexJS-maven-compiled-from-source-but-sett
>ings-and-lib-missing-tp15045p15256.html&data=02%7C01%7C%7Ca62f1553c9364227
>16d308d4a1e12bbf%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636311435863
>447438&sdata=YhFYOrgCeFYr0ALIWfUlYyYLBQQDhm6f6M4IdYa0Wxk%3D&reserved=0
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hi Christofer,
I was able to compile everything both with Maven and Ant on MacOS. 
Then I followed the instructions to use FlexJS within Flash Builder 4.7
(https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+Flash+Builder).


The release 0.8.0 I build through Maven returns this error when converting
the simple Flex project to FlexJS project:

The file does not exist for the external tool named Convert New Flex Project
to FlexJS MVC Project.

while with the release 0.7.0 compiled with Ant I can convert the project to
a FlexJS project, but, trying to launch the Falcon JX release and build
configuration the error is:

Using Falcon codebase:
/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../..
Using Flex SDK:
/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../..
Error: Unable to access jarfile
/Users/pbellitto/Sviluppo/apache-flex-flexjs-0.7.0-ant/js/bin/../lib/mxmlc.jar


that is the same problem I had on Windows.
I'm using the latest releases of Maven and Ant.

Thanks
Patrizia



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15256.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by "patrizia.bellitto" <pa...@st.com>.
Hello Cristopher,
thanks for your answer, sorry but I saw it only now.
I obtained that error with Ant on Windows, not with Maven.
I'm trying again right now with Maven on MacOS, let's see if I have the same
problems.

THanks
Patrizia



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15255.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS - maven]: compiled from source, but settings and ../lib/* missing

Posted by Christofer Dutz <ch...@c-ware.de>.
This sounds like you are using an older version of the compiler with a newer version of the maven plugin.
Currently configuration is changing a lot and you should always use the same version of compiler as you are using in the plugin.

But what are you doing exactly. Maven doesn’t require you to have anything installed locally, you only need that if you are building with FlashBuilder or Ant.

Chris



Am 15.05.17, 09:38 schrieb "patrizia.bellitto" <pa...@st.com>:

    Hello Davide,
    I have your same issue: the mxmlc.jar does not exist inside the directory
    js/lib, so I copied all the the content from the lib, but now the error
    changes to  command line: Error: unknown configuration variable
    'js-output-type'.
    
    Were you able to fix it?
    
    Thanks
    Patrizia
    
    
    
    --
    View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-maven-compiled-from-source-but-settings-and-lib-missing-tp15045p15233.html
    Sent from the Apache Flex Users mailing list archive at Nabble.com.