QE by @sparkoo
For who is this doc written? It's questionable whether setting JAVA_HOME and PATH is needed. JAVA_HOME is used by some tools, PATH is definitely needed for command line. However as a Java developer I have my IDE where I specify java path I like and on server I'd like to write full path. I agree that setting both variables makes life easier with most java tooling and I've used similar setup when I was developing with Java on Windows.