Still can't compile the examples;
>ant examples

     [java] Exception in thread "main" java.lang.NoClassDefFoundError:
com/google/javascript/jscomp/ErrorManager

     [java] at
org.apache.flex.compiler.clients.MXMLJSC.compile(MXMLJSC.java:343)

     [java] at
org.apache.flex.compiler.clients.MXMLJSC._mainNoExit(MXMLJSC.java:262)

     [java] at
org.apache.flex.compiler.clients.MXMLJSC.mainNoExit(MXMLJSC.java:220)

     [java] at
org.apache.flex.compiler.clients.MXMLJSC.main(MXMLJSC.java:182)

     [java] Caused by: java.lang.ClassNotFoundException:
com.google.javascript.jscomp.ErrorManager

     [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

     [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

     [java] at java.security.AccessController.doPrivileged(Native Method)

     [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

     [java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

     [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

     [java] ... 4 more

     [java] Java Result: 1


Tried moving the google compiler.jar to various places so ErrorManager
would be found but no luck. Any idea what is wrong with my configuration?




On Sun, May 25, 2014 at 11:17 PM, Alex Harui <aha...@adobe.com> wrote:

> Yes, some versions of Ant fail to make the folder path for spark.css.  It
> will be fixed in the next release.
>
> On 5/25/14 2:41 PM, "Darrell Loverin" <darrell.love...@gmail.com> wrote:
>
> >I delete the binary package and ran
> > ant -f installer.xml -Dclosure.download.file=compiler-20140303.zip
> >
> >as you recommended. I entered 'y' to every download prompt. The script was
> >not successful, it was missing spark.css:
> >
> >hack-fb-files:
> >
> >    [mkdir] Created dir:
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/locale
> >
> >    [mkdir] Created dir:
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/mx
> >
> >    [mkdir] Created dir:
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/rsls
> >
> >    [mkdir] Created dir:
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/themes/Halo
> >
> >     [copy] Copying 1 file to
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/themes/Halo
> >
> >    [touch] Creating
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/themes/Spark/spark
> >.css
> >
> >
> >BUILD FAILED
> >
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/installer.xml:665: Could not
> >create
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/themes/Spark/spark
> >.css
> >
> >
> >I copied Spark/spark.css from the asja/frameworks into the binary package.
> >I re-ran the command, this time choosing not to download any packages.
> >This
> >time the script was able to complete:
> >
> >hack-fb-files:
> >
> >     [copy] Copying 1 file to
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks
> >
> >    [touch] Creating
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/macfonts.ser
> >
> >    [touch] Creating
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/winfonts.ser
> >
> >    [touch] Creating
> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/localfonts.ser
> >
> >
> >setup-launch-configs:
> >
> >     [echo] Installing Adobe Flash Builder launch configuration files
> >
> >
> >install:
> >
> >     [echo] /Users/dloverin/apache-flex-flexjs-0.0.1-bin is now an IDE
> >compatible folder
> >
> >
> >BUILD SUCCESSFUL
> >
> >
> >
> >
> >
> >
> >On Fri, May 23, 2014 at 12:11 AM, Alex Harui <aha...@adobe.com> wrote:
> >
> >> Start over, delete the folder and uncompress the binary package into a
> >>new
> >> folder.
> >>
> >> Then run:
> >>          ant -f installer.xml
> >>-Dclosure.download.file=compiler-20140303.zip
> >>
> >> -Alex
> >>
> >> On 5/22/14 9:00 PM, "Darrell Loverin" <darrell.love...@gmail.com>
> wrote:
> >>
> >> >I removed the lib/google folder and the in/compiler-latest.zip from the
> >> >falcon repo. I ran "ant
> >>-Dclosure.download.filename=compiler-20140303.zip
> >> >clean main" from falcon and again from the asja repos.
> >> >
> >> >The lib/google folder was not refilled with a download as I expected.
> >> >Neither was the 'in' folder.
> >> >
> >> >I've also tried using the flexJS download without success.
> >> >
> >> >I get the following error when I run 'ant -f installer.xml':
> >> >
> >> >swfobject-check:
> >> >
> >> >
> >> >swfobject-download:
> >> >
> >> >   [delete] Deleting:
> >> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/swfobject.properties
> >> >
> >> >     [echo] Downloading swfobject_2_2.zip from:
> >> >http://swfobject.googlecode.com/files
> >> >
> >> >      [get] Getting:
> >> >http://swfobject.googlecode.com/files/swfobject_2_2.zip
> >> >
> >> >      [get] To:
> >> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/in/swfobject_2_2.zip
> >> >
> >> >     [echo] Download complete
> >> >
> >> >    [unzip] Expanding:
> >> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/in/swfobject_2_2.zip into
> >> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/templates
> >> >
> >> >
> >> >get-third-party-files:
> >> >
> >> >
> >> >fixup-config-files:
> >> >
> >> >     [echo] Installing frameworks configuration files configured for
> >>use
> >> >with an IDE
> >> >
> >> >
> >> >hack-fb-files:
> >> >
> >> >
> >> >BUILD FAILED
> >> >/Users/dloverin/apache-flex-flexjs-0.0.1-bin/installer.xml:664:
> >>Warning:
> >> >Could not find file
> >>
> >>>/Users/dloverin/apache-flex-flexjs-0.0.1-bin/frameworks/as/libs/MXMLCCla
> >>>ss
> >> >es.swc
> >> >to copy.
> >> >
> >> >
> >> >
> >> >On Tue, May 20, 2014 at 11:53 PM, Alex Harui <aha...@adobe.com> wrote:
> >> >
> >> >> It looks like the latest Closure Compiler reports this as an error in
> >> >> Google Closure Library.
> >> >>
> >> >> Try using an older version of the Google Closure Compiler.  If you
> >>are
> >> >> working from the repos, remove the lib/google folder and the
> >> >> compiler-latest.zip from the "in" folder and run the build with
> >> >>
> >> >> -Dclosure.download.filename=compiler-20140303.zip
> >> >>
> >> >>
> >> >> -Alex
> >> >>
> >> >> On 5/20/14 7:47 PM, "Darrell Loverin" <darrell.love...@gmail.com>
> >> wrote:
> >> >>
> >> >> >I'm getting errors when compiling the examples in asja.
> >> >> >
> >> >> >First I ran 'ant' in the main directory and it built without any
> >> >> >noticeable
> >> >> >errors:
> >> >> >
> >> >> >
> >> >> >compile:
> >> >> >
> >> >> >     [echo] running gjslint
> >> >> >
> >> >> >     [exec] 149 files checked, no errors found.
> >> >> >
> >> >> >     [echo] running jshint
> >> >> >
> >> >> >Next I ran 'ant examples' to build the examples. A common error in
> >>the
> >> >> >examples is:
> >> >> >
> >> >>
> >>
> >>>>>ApacheFlex/asja/examples/CordovaCameraExample/bin/js-debug/library/clo
> >>>>>su
> >> >>>re
> >> >> >/goog/base.js:1503:
> >> >> >ERROR - "arguments.callee" cannot be used in ES5 strict mode
> >> >> >
> >> >> >     [java]   var caller = arguments.callee.caller;
> >> >> >
> >> >> >
> >> >> >
> >> >> >Any idea what I might be going wrong?
> >> >> >
> >> >> >
> >> >> >Thanks,
> >> >> >
> >> >> >
> >> >> >-Darrell
> >> >>
> >> >>
> >>
> >>
>
>

Reply via email to