Comments (11)
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.
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.
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.
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.
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.
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.
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.
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.
So are the soy templates now using the bundled version of Java?
from coding-with-chrome.
@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.
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)
- Open Tasks (refactoring) HOT 2
- importing images in html HOT 1
- Every .cwc file is made by Markus Bordihn
- Every .cwc file is owned by Markus Bordihn
- Update last run version data even if whatsnew feature disabled
- Tile height inconsistent HOT 1
- Joydemo disabled warning should be moved HOT 2
- AIY mode never goes out 'waiting for connection'
- AIY output is very strange to cut/paste
- Advanced > Robots says it is using blockly blocks. It is not
- What's new / Changelog / Version needs to be automated.
- shepherd.js usage HOT 3
- Add a spanish translation HOT 2
- Adding in anoymous tracking
- Editor issues when coding python
- Text across the application doesn't appear correctly when the language changed to other than English HOT 1
- README 404 HOT 2
- input statement not working in Python
- Do we still need "Windows-Build-Tools" to be explicitly installed to run this project?. HOT 1
- Is there a nested git repository inside this project?. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coding-with-chrome.