JRE vs JDK
I've just installed java JDK in my computer, and I've seen their two folders, one is JDK, and other is JRE. I just wanna know if we are setting the path to JDK folder, and calling javac, and java tool in it, then what's the need of this JRE folder? What's its use here?
Thanks in advance.
just setting java with JDK..
dont use JRE
JRE is the Java Runtime Environment.
JDK is the Java Developer Kit
You can't run java apps without the JRE and you cant compile Java classes without the JDK
For your everyday computer user, JDK would be a worthless bunch of junk, but the JRE could become quite useful... the JRE can run any Java applet or application, but it cannot use something that you just wrote, as the code must be compiled. The JDK does the compiling and creates the .class files, which are then used by the JRE to run the program. A Java programmer needs both, but for someone who only uses Java programs, all that is needed is the JRE