Question: is jre and jdk both required?
Answer: You no need to install JRE then , JDK usually consists of both development & run-time environments in it. If you install JDK then JRE will be in it and installed automatically along with JDK. ... java> you need to have JDK which already have JRE in it. to do java filename you need only JRE.