Git Product home page Git Product logo

Comments (11)

carlosperate avatar carlosperate commented on May 4, 2024

Tried again with the tagged version 2 and while it failed at the same point, it also seemebed to continue running the rest of the build steps, however the end result with the Chrome app was the same.

> [email protected] build-cwc-files E:\workspaces\git\coding-with-chrome-2.0.0
> node build/cwc_files.js

[14%] cwc.ui.Builder Compiling 51 soy files to C:\Users\Carlos\AppData\Local\Temp\closure-builder-JGkwf5M (0.0 sec)soynode: Compile error
 Error: spawn java ENOENT
[Soy Compiler Error] Failed for C:\Users\Carlos\AppData\Local\Temp\closure-builder-JGkwf5M:Error: Error compiling templates
[100%] cwc.framework.Runner [Done] (156.2 sec)
[100%] cwc.framework.Arduino [Done] (158.7 sec)
[100%] cwc.framework.TTS [Done] (164.1 sec)
[100%] cwc.framework.Sphero [Done] (166.9 sec)
[100%] cwc.framework.Ev3 [Done] (167.1 sec)
[100%] cwc.framework.simple.Loader [Done] (166.7 sec)

from coding-with-chrome.

carlosperate avatar carlosperate commented on May 4, 2024

Since this is related to the soy templates, this might be caused by not having Java installed on this computer. If this is the case, then the README should change the java requirement from optional to mandatory.

from coding-with-chrome.

MarkusBordihn avatar MarkusBordihn commented on May 4, 2024

Normally the open Source version of java should be automatically installed.
It seems it worked fine for the normal compiler see "cwc.framework..." messages, but it failed for the soy template compiler.

As workaround you could install java to solve the issue, but I will try to adjust the "closure-builder" to automatically handling such case in the future.

from coding-with-chrome.

carlosperate avatar carlosperate commented on May 4, 2024

Do you mean like a bundled self-contained version of Java (like the Arduino IDE does)?

I'd really prefer not to install the jre on my mail dev pc, but I might try it on a vm to ensure that fixes it.

from coding-with-chrome.

MarkusBordihn avatar MarkusBordihn commented on May 4, 2024

Yes, the closure compiler is using an bundled version if no java is available.
But the soy compiler is unfortunately not doing this.

from coding-with-chrome.

johanlindberg avatar johanlindberg commented on May 4, 2024

A build error with the Soy template also happens on Mac OS X (10.9.5) Is it the same as you have reported @carlosperate ?

> node build/cwc_files.js

[14%] cwc.ui.Builder Compiling 52 soy files to /var/folders/r8/5k_vqzd911qflw_nqb9jrm700000gn/T/closure-builder-umWv4Fk (0.0 sec)soynode: Compile error
 Exception in thread "main" java.lang.UnsupportedClassVersionError: com/google/template/soy/SoyToJsSrcCompiler : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

[Soy Compiler Error] Failed for /var/folders/r8/5k_vqzd911qflw_nqb9jrm700000gn/T/closure-builder-umWv4Fk:Error: Error compiling templates

from coding-with-chrome.

carlosperate avatar carlosperate commented on May 4, 2024

Not quite the same, mine fails as soon as it tries to launch java to compile the template, yours seems to be an issue with the Java version itself: http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-major-minor-version-51-0-error

from coding-with-chrome.

johanlindberg avatar johanlindberg commented on May 4, 2024

Right you are. There was a 1.6 JRE lurking behind /usr/bin/java on that machine. I've fixed that now hoping to get a clean build eventually.

from coding-with-chrome.

carlosperate avatar carlosperate commented on May 4, 2024

So are the soy templates now using the bundled version of Java?

from coding-with-chrome.

ergelo avatar ergelo commented on May 4, 2024

@MarkusBordihn will know? I was going to add this to an FAQ, or do we want to keep this issue open until we are bundling Java in the soy compiler?

from coding-with-chrome.

MarkusBordihn avatar MarkusBordihn commented on May 4, 2024

Unfortunately the bundled Java version is not longer maintained (since 3 years), so we are not able to use easily an bundled Java versions instead.

But I have create an feature request to use some online services instead.
google/closure-builder#4

@ergelo
As soon you have add this to an FAQ you could close this.
I have enabled the WIKI tab for this reason where we could add additional documentation.

from coding-with-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.