Installing JAVA_HOME in the installation directory and adding $JAVA_HOME/bin to PATH will suffice if you do not need to configure build systems such as maven or ant.
CLASSPATH is required for most startup scripts to contain the location of supporting libraries (.jar) or third-party materials.
JAVA_OPTS usually contains parameters for setting heap space, debug agent, etc.
AFAIK java itself does not depend on the environment settings; rather, it runs scripts, init services and all around.
Thus, you will not find a single list of all environment variables associated with java (software products).
source share