question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem running Demo Closure Template and need for Java

See original GitHub issue

I am trying to run the demo. I get a popup saying I need a version of Java. I’m running on a Mac 10.10.5. To investigate, I saw that the first step is to call build and that build just calls gulp. The error below indicates the problem is in not having Java. Is Java required to build this project?

becky-mac:demo peltzr$ npm run build

firebaseui@2.7.0 build /Users/peltzr/Downloads/firebaseui-web-master gulp

[12:34:26] Using gulpfile ~/Downloads/firebaseui-web-master/gulpfile.js [12:34:26] Starting ‘build-soy’… [12:34:26] Starting ‘build-css’… [12:34:26] Starting ‘build-css-rtl’… [Closure Templates Error] No Java runtime present, requesting install.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! firebaseui@2.7.0 build: gulp npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the firebaseui@2.7.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/peltzr/.npm/_logs/2018-05-02T19_34_27_023Z-debug.log becky-mac:demo peltzr$ gulp [12:34:34] Working directory changed to ~/Downloads/firebaseui-web-master [12:34:35] Using gulpfile ~/Downloads/firebaseui-web-master/gulpfile.js [12:34:35] Starting ‘build-soy’… [12:34:35] Starting ‘build-css’… [12:34:35] Starting ‘build-css-rtl’… [Closure Templates Error] No Java runtime present, requesting install.

becky-mac:demo peltzr$

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
bojeil-googlecommented, May 2, 2018

Yes, you are required to have a Java Runtime Environment. https://github.com/firebase/firebaseui-web#dependencies

1reaction
klingltcommented, Jun 21, 2018

Same issue here while building localized firebaseUI…

$ java --version java 10.0.1 2018-04-17 Java™ SE Runtime Environment 18.3 (build 10.0.1+10) Java HotSpot™ 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

[14%] soy_files Compiling 3 soy files to out (0.1 sec)[Closure Templates Error] Unrecognized option: -d64 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 1, Introduction to Closure - O'Reilly
A unique aspect of Closure Templates is that the same template can be compiled into both Java and JavaScript, so those running servers...
Read more >
Error resolving template "index", template might not exist or ...
Check for the name of the. templates. folder. it should be templates not template(without s).
Read more >
Java Software Errors: How to Avoid 50 Code Issues in Java
We've rounded up 50 of the most common Java software errors, complete with code examples and tutorials to help you work around common...
Read more >
Java Coding Samples
Java Coding Samples. Various Java programs to illustrate various concepts. A Hello World! Java program. Calling Methods. A sample of how to call...
Read more >
Cannot run the soy compiler against templates - Google Groups
I have not been using closure tools for awhile and today started an improvement on an old project, first step - rebuild everything...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found