vaadin-connect icon indicating copy to clipboard operation
vaadin-connect copied to clipboard

do not require JAVA_HOME to build and start the project

Open vlukashov opened this issue 6 years ago • 2 comments

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.

vlukashov avatar Mar 25 '19 14:03 vlukashov

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

Legioth avatar Mar 27 '19 11:03 Legioth

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.

vlukashov avatar Mar 28 '19 08:03 vlukashov