Check out example codes for "Error executing Maven. java.io.FileNotFoundException: The specified user settings file does not exist: /etc/java-8-openjdk". It will help you in understanding the concepts better.

Code Example 1

JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.141-3.b16.el6_9.x86_64

Learn ReactJs, React Native from akashmittal.com