On Tue, Oct 14, 2014 at 3:05 PM, Alex Harui <aha...@adobe.com> wrote:
> I think that will launch mxmlc.bat which uses @java, but FB I think is > stuck on Java 6 and @java might resolve to that. Try replacing @java with > a full path to a more recent Java. > > That worked, thanks! While we are here, can you help me out with a related issue. I want to modify the FlexJSUI and FlexJSJX projects and still continue to work with the installed FlexJS. So, I am adding a library path to my FlexJS project. Actual path: C:/p/flexroot/git/flex-asjs/frameworks/as/libs/ FB is okay with this, no compile errors. But, when I run it using the FlexJS external tool, the path gets converted to this: -library-path+=C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/C:/p/flexroot/git/flex-asjs/frameworks/as/libs/ And I am getting an error: command line unable to open 'C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG\C:\p\flexroot\git\flex-asjs\frameworks\as\libs' How can I tell the launch tool to not treat it a path inside the project, but an absolute one? Here is the full stack trace: Using Falcon codebase: C:\p\flexroot\FlexJS Using Flex SDK: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\ApacheFlex4.13.0_AIR15_FP15 using FlashBuilder Project Files FlashBuilder settings: -locale en_US -source-path+=C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/src -compiler.accessible=true -output=C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/bin-release/FlexJSTest_SVG.swf -library-path+=C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/libs -library-path+=C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/C:/p/flexroot/git/flex-asjs/frameworks/as/libs/ -js-output-type=FLEXJS -sdk-js-lib=C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\sdks\ApacheFlex4.13.0_AIR15_FP15\frameworks\js\FlexJS\src -fb C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG/src/FlexJSTest_SVG.mxml command line unable to open 'C:\p\flexroot\git\flex-asjs\examples\FlexJSTest_SVG\C:\p\flexroot\git\flex-asjs\frameworks\as\libs'. Thanks, Om > -Alex > > On 10/14/14, 2:54 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: > > >On Tue, Oct 14, 2014 at 1:35 PM, Alex Harui <aha...@adobe.com> wrote: > > > >> > >> > >> On 10/14/14, 1:25 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> > >>wrote: > >> > >> >On Mon, Oct 13, 2014 at 9:14 PM, Alex Harui <aha...@adobe.com> wrote: > >> > > >> >> Sounds like a FALCON_HOME environment variable is pointing to a > >>folder > >> >>in > >> >> a flex-falcon repo. It needs to point to the FlexJS SDK. > >> >> > >> > > >> >The README in flex-asjs says that FALCON_HOME should point to: > >> ><flex-falcon-repo-path>/compiler/generated/dist/sdk, which is what I > >> >tried. > >> THat’s true for using the repos and running ant. An installed > >> IDE-compatible setup is different. I guess we should make that clear in > >> the README. > >> > > > >That's what I guessed. I think this page [1] is due for an update as > >well. > > > >[1] > > > https://cwiki.apache.org/confluence/display/FLEX/Using+FlexJS+with+Adobe+F > >lash+Builder > > > > > >> > >> > > >> >Anyways, when I switched FALCON_HOME to point ot the FlexJS > >>installation > >> >directory, I am getting this error: > >> > > >> >Using Falcon codebase: C:\p\flexroot\FlexJS > >> >Using Flex SDK: C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 > >> >Bit)\sdks\ApacheFlex4.13.0_AIR15_FP15 > >> >java.lang.UnsupportedClassVersionError: > >> >org/apache/flex/compiler/clients/MXMLJSC : Unsupported major.minor > >>version > >> >51.0 > >> You might be pointing at an older version of Java. Double-check what is > >> in the launch config. > >> > > > >This is what I see in the launch config: > > > ><launchConfiguration > >type='org.eclipse.ui.externaltools.ProgramLaunchConfigurationType'> > ><booleanAttribute key='org.eclipse.debug.core.appendEnvironmentVariables' > >value='false'/> > ><listAttribute key='org.eclipse.debug.ui.favoriteGroups'> > ><listEntry value='org.eclipse.ui.externaltools.launchGroup'/> > ></listAttribute> > ><stringAttribute > >key='org.eclipse.ui.externaltools.ATTR_LAUNCH_CONFIGURATION_BUILD_SCOPE' > >value='${project}'/> > ><stringAttribute key='org.eclipse.ui.externaltools.ATTR_LOCATION' > >value='$FLEXJS_HOME/js/bin/$MXMLC'/> > ><stringAttribute key='org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS' > >value='-fb "${project_loc}"'/> > ></launchConfiguration> > > > >I don't see anything relevant to the error message. Am I looking in the > >right place? > > > >Thanks, > >Om > > > > > >> > >> -Alex > >> > >> > >