Hi, I am into Java programming since few years but still have a small confusion. JDK has utilities for compiling and executing java programs i.e. javac and java then why we need JRE? Does JRE need to be there for providing JVM only? I have found that JRE interprets byte code into machine specific code and thereby executes them , I understand that the same thing is done by java.exe launcher. ISnt it?
The JRE is used by applications which simply execute Java programming (Applets on web pages, for example). All the components of the JRE are in the JDK too, but the JDK has compilers etc, so you can use it to create new applications.
Thank yoo all for responding. Yes I found JRE in JDK and JDK too has its own tools for execution of a Java Program, so I thought why is JRE needed. Now I understand that if one has bytecode then one just needs to have JRE on his machine to execute them.Thank you all once again