You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by kinjal patel <ki...@gmail.com> on 2015/12/11 08:13:43 UTC

FlexJS Environment variable

I have set two enviroment variable 
Flex Home : FlexSdks\4.14
Falcon Home: Flexsdks\FlexJS0.5.0

I have tried to compile FlexJS application through command line for that I
have set the path of FlexJS sdk and applied mxmlc command but it take
flex-home path instead of flexjs path(falcon home) for compile the
application.

D:\FlexSDKs\FlexJS0.5.0\bin>mxmlc
-load-config+=C:/Users/kinjal/Documents/HelloW
orldFlexJS/obj/HelloWorldFlexJSConfig.xml -optimize=false -debug=true -o
C:/User
s/kinjal/Documents/HelloWorldFlexJS/bin-debug/HelloWorldFlexJS.swf

Using Falcon codebase: D:\FlexSDKs\FlexJS0.5.0
Using Flex SDK: D:\FlexSDKs\4.14
Loading configuration: D:\FlexSDKs\4.14\frameworks\flex-config.xml
Loading configuration:
C:\Users\kinjal\Documents\HelloWorldFlexJS\obj\HelloWorld
FlexJSConfig.xml

C:\Users\kinjal\Documents\HelloWorldFlexJS\src\HelloWorldFlexJS.mxml:2
Error: This tag could not be resolved to an ActionScript class. It will be
ignor
ed.
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
^

D:\FlexSDKs\FlexJS0.5.0\bin>

Please suggest me what extra i need to pass with mxmlc command or what other
env var need to set.

Thanks,
Kinjal
_



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable-tp11640.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: FlexJS Environment variable

Posted by kinjal patel <ki...@gmail.com>.
Hello Alex,

Thanks for the reply.Yes this works fine.

Thanks,
Kinjal

On Wed, Dec 23, 2015 at 8:24 PM, Alex Harui [via Apache Flex Users] <
ml-node+s2333346n11692h5@n4.nabble.com> wrote:

>
>
> On 12/23/15, 1:00 AM, "kinjal patel" <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=11692&i=0>> wrote:
>
> >I have another problem to create javascript from mxmlc using FlexJS sdks.
> >For that first i set FLEX_HOME and FALCON_HOME using export command
> >after that i pass "/Users/kinjal/Documents/FlexSDKs/FlexJS\
> >0.5.0/js/bin/mxmlc
> >/Users/kinjal/Documents/NewFlexJSProject/src/NewFlexJSProject.mxml"
> >command
> >in terminal and i am getting error
> >
> >Using Falcon codebase: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
> >Using Flex SDK: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
> >Error: Unable to access jarfile /../lib/mxmlc.jar
> >
> >I have checked that the SCRIPT_HOME variable is set to null when the path
> >of
> >sdks has space.How to set SCRIPT_HOME or pass value from terminal to set
> >SCRIPT_HOME in mxmlc file.
>
> Try editing mxmlc so the SCRIPT_HOME is set like this:
>
> SCRIPT_HOME=`dirname "$0"`
>
> If that works we'll make the changes to the scripts for the future.
>
> Thanks,
> -Alex
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable-tp11640p11692.html
> To unsubscribe from FlexJS Environment variable, click here
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=11640&code=a2luamFscGF0ZWwzOTgzQGdtYWlsLmNvbXwxMTY0MHwtMTM4NTc4Njc3OQ==>
> .
> NAML
> <http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable-tp11640p11694.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: FlexJS Environment variable

Posted by Alex Harui <ah...@adobe.com>.

On 12/23/15, 1:00 AM, "kinjal patel" <ki...@gmail.com> wrote:
>I have another problem to create javascript from mxmlc using FlexJS sdks.
>For that first i set FLEX_HOME and FALCON_HOME using export command
>after that i pass "/Users/kinjal/Documents/FlexSDKs/FlexJS\
>0.5.0/js/bin/mxmlc
>/Users/kinjal/Documents/NewFlexJSProject/src/NewFlexJSProject.mxml"
>command
>in terminal and i am getting error
>
>Using Falcon codebase: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
>Using Flex SDK: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
>Error: Unable to access jarfile /../lib/mxmlc.jar
>
>I have checked that the SCRIPT_HOME variable is set to null when the path
>of
>sdks has space.How to set SCRIPT_HOME or pass value from terminal to set
>SCRIPT_HOME in mxmlc file.

Try editing mxmlc so the SCRIPT_HOME is set like this:

SCRIPT_HOME=`dirname "$0"`

If that works we'll make the changes to the scripts for the future.

Thanks,
-Alex


Re: FlexJS Environment variable

Posted by kinjal patel <ki...@gmail.com>.
Hello Alex,

Above problem is resolved.I override FLEX_HOME sdks at run time using set
command in cmd and export command in MacOS so my FLEX_HOME and FLACON_HOME
var pointing to FlexJS sdk and the mxmlc string works fine.


I have another problem to create javascript from mxmlc using FlexJS sdks.
For that first i set FLEX_HOME and FALCON_HOME using export command
after that i pass "/Users/kinjal/Documents/FlexSDKs/FlexJS\
0.5.0/js/bin/mxmlc
/Users/kinjal/Documents/NewFlexJSProject/src/NewFlexJSProject.mxml" command
in terminal and i am getting error

Using Falcon codebase: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
Using Flex SDK: /Users/kinjal/Documents/FlexSDKs/FlexJS 0.5.0
Error: Unable to access jarfile /../lib/mxmlc.jar

I have checked that the SCRIPT_HOME variable is set to null when the path of
sdks has space.How to set SCRIPT_HOME or pass value from terminal to set
SCRIPT_HOME in mxmlc file.

Thanks,
Kinjal



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable-tp11640p11689.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: FlexJS Environment variable

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

No need to post to both mailing lists.

It looks to me like your FLEX_HOME is pointing to a regular Flex SDK and
not a FlexJS SDK.
I'm not sure what steps you took to get set up, so if you still have
trouble provide more information about that.  If you used the Apache Flex
Installer, it shouldn't require any environment variables.

-Alex

On 12/10/15, 11:13 PM, "kinjal patel" <ki...@gmail.com> wrote:

>I have set two enviroment variable
>Flex Home : FlexSdks\4.14
>Falcon Home: Flexsdks\FlexJS0.5.0
>
>I have tried to compile FlexJS application through command line for that I
>have set the path of FlexJS sdk and applied mxmlc command but it take
>flex-home path instead of flexjs path(falcon home) for compile the
>application.
>
>D:\FlexSDKs\FlexJS0.5.0\bin>mxmlc
>-load-config+=C:/Users/kinjal/Documents/HelloW
>orldFlexJS/obj/HelloWorldFlexJSConfig.xml -optimize=false -debug=true -o
>C:/User
>s/kinjal/Documents/HelloWorldFlexJS/bin-debug/HelloWorldFlexJS.swf
>
>Using Falcon codebase: D:\FlexSDKs\FlexJS0.5.0
>Using Flex SDK: D:\FlexSDKs\4.14
>Loading configuration: D:\FlexSDKs\4.14\frameworks\flex-config.xml
>Loading configuration:
>C:\Users\kinjal\Documents\HelloWorldFlexJS\obj\HelloWorld
>FlexJSConfig.xml
>
>C:\Users\kinjal\Documents\HelloWorldFlexJS\src\HelloWorldFlexJS.mxml:2
>Error: This tag could not be resolved to an ActionScript class. It will be
>ignor
>ed.
><js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>^
>
>D:\FlexSDKs\FlexJS0.5.0\bin>
>
>Please suggest me what extra i need to pass with mxmlc command or what
>other
>env var need to set.
>
>Thanks,
>Kinjal
>_
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable
>-tp11640.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


Re: FlexJS Environment variable

Posted by PKumar <pr...@gmail.com>.
Use Flash Builder 4.7 and Binary Distribution for Application Development.
You can use ANT for compiling FlexJS SDk and  available examples.



-----
Prashant
Sr. Product Specialist, Sungard
--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Environment-variable-tp11640p11649.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.