title: How can I able to compile and run java programs without JDK with just JRE?
body: <p>I have installed JRE in my machine and downloaded Eclipse IDE and started to work on that IDE.</p>
  
  <p>I have read from some blogs like Without JDK we can't compile the java program but i can able to run program/application in eclipse IDE.</p>
  
  <p>Then in some other blogs gave me information like eclipse will have own JDK so try to run in command prompt to get know information. When i try to compile the program in bin folder(C:\Program Files\Java\jre7\bin) via command prompt it says javac couldn't recognize. I thought it's because of compiled class file is missing as JDK is not installed so i have copied the project from Eclipse IDE with class file and try to run the program it says couldn't find or load main class filename.java.</p>
  
  <p>Even i have set environment variable as Java_home for the JRE bin path.</p>
  
  <p>Pls explain JDK and JRE difference in brief to me.</p>