title: Switching to java 11 from java 8
body: <p>I have downloaded and installed oraclejdk11 from oracle official site and modified PATH &amp; JAVA_HOME variable in system environment variable on windows</p>
  
  <p>C:\Users\Aviral>javac -version</p>
  
  <p><strong>javac 11.0.1</strong> </p>
  
  <p>C:\Users\Aviral>java -version</p>
  
  <p><strong>java version "1.8.0_102"</strong></p>
  
  <p>Java(TM) SE Runtime Environment (build 1.8.0_102-b14)<br>
  Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)     </p>
  
  <p>i know that jdk11 do not contain jre but how can i run a java program from cmd in java 11</p>