Jre setup did nt appear after jdk installed

after i installed rather asking for installing jre file it asks to close . how would i install jre ?

do we have to code on intellij in further course or cmd ?

JDK is a superset of JRE , and contains everything that is in JRE ,