Could anyone please tell how jre directory help in the running java programs? I’m calling java interpretor by using java command, and that is in JDK directory, then how could jre directory help in running java programs and jdk for compiling?
Could anyone please tell how jre directory help in the running java programs? I’m
Share
When you install the JDK (development kit, compiler and so on), you get the JRE (runtime environment) as part of that (under my install, there’s actually a
jresubdirectory in thejdkfolder) – this is because you will probably want to run code that you develop if only to test it a little bit before inflicting it on the rest of the planet :-).But it’s by no means necessary to install the JDK to run Java programs. All you need is the JRE and that is, by far, the normal situation for most people out there.