First make sure you can compile cleanly with Flex 4.1 from the command-line (without the -api-report option). What do you have to type on the command-line to compile with Flex SDK. If you have to add -library-path or -external-library-path, you will need those when using the Royale Compiler.
HTH, -Alex On 6/22/18, 3:25 AM, "chembali" <[email protected]> wrote: I used the nightly build and I am not getting the -api-report option error anymore. But I am getting NullPointerException. Please see the below details. Any ideas what is causing this exception? C:\devenv\apache-royale\royale-asjs>mxmlc -api-report=C:/flex/report.txt -load-c onfig=C:/devenv/ii/trunk/tools/flex/flex4.1-adobe/frameworks/flex-config.xml C:/ devenv/flex/Flex_Ant_Tasks/src/Main.mxml Using Royale Compiler codebase: C:\devenv\apache-royale\royale-asjs\js\bin\..\.. Using Royale SDK: C:\devenv\apache-royale\royale-asjs MXMLJSC -sdk-js-lib=C:\devenv\apache-royale\royale-asjs\frameworks\js\Royale\generated-sources -api-report=C:/flex/report.txt -load-config=C:/devenv/ii/trunk/tools/flex/flex4.1-adobe/frameworks/flex-config.xml C:/devenv/flex/Flex_Ant_Tasks/src/Main.mxml Compiling file: C:\devenv\flex\Flex_Ant_Tasks\bin\js-debug\Main.js Main as: [com.pxldesigns.flexTasks.LabelBuilder, Main, org.apache.royale.events.ValueChangeEvent] Main mxml: [Main] Internal error: java.lang.NullPointerException org.apache.royale.compiler.intern al.projects.RoyaleJSProject.isExternalLinkage(RoyaleJSProject.java:284)org.apach e.royale.compiler.internal.codegen.mxml.royale.MXMLRoyaleEmitter.postProcess(MXM LRoyaleEmitter.java:234)org.apache.royale.compiler.internal.codegen.mxml.MXMLWri ter.writeTo(MXMLWriter.java:75)org.apache.royale.compiler.clients.MXMLJSCRoyale. compile(MXMLJSCRoyale.java:374)org.apache.royale.compiler.clients.MXMLJSCRoyale. _mainNoExit(MXMLJSCRoyale.java:240)org.apache.royale.compiler.clients.MXMLJSCRoy ale.mainNoExit(MXMLJSCRoyale.java:197)org.apache.royale.compiler.clients.MXMLJSC ._mainNoExit(MXMLJSC.java:363)org.apache.royale.compiler.clients.MXMLJSC.mainNoE xit(MXMLJSC.java:299)org.apache.royale.compiler.clients.MXMLJSC.staticMainNoExit (MXMLJSC.java:258)org.apache.royale.compiler.clients.MXMLJSC.main(MXMLJSC.java:2 40) -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C27c9937c18074e7624b908d5d82a7553%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C1%7C636652599225646156&sdata=ro3o4cj187BqJ2OSXtMyd2s7FL%2BqDW2ZiPaWnxX76Ns%3D&reserved=0
