vaadin / vaadin-connect

A Vaadin Labs experiment with a secure stateless communication framework
https://vaadin.com/labs/vaadin-connect
Apache License 2.0
18 stars 5 forks source link

do not require JAVA_HOME to build and start the project #398

Open vlukashov opened 5 years ago

vlukashov commented 5 years ago

Maven (global, or installed via the wrapper) requires JAVA_HOME to run. It is affecting the first evaluation experience for people who try to build the project for the first time and might not have a Java development environment set up.

It would be awesome to modify the connect-scripts / maven wrapper so that it tries to guess the JAVA_HOME environment variable if it's not set. E.g. based on the location of the java binary, or by starting a Java process and having it to detects its own effective JAVA_HOME.

Legioth commented 5 years ago

Under which circumstances can Java still be functional, but JAVA_HOME is not set?

vlukashov commented 5 years ago

Under which circumstances can Java still be functional, but JAVA_HOME is not set?

On a clean Windows machine (e.g. one of the Modern IE VMs) install a JDK (e.g. Oracle JDK 8). Java is operational, but JAVA_HOME is not set.