If you are just a regular computer user, you only need the . If you are learning to code in Java, you need the JDK (which includes the JRE inside it).
These terms are often confused, so it helps to separate them:
These are configuration files and other resources that help the JVM and libraries function smoothly on your specific device.