Sunday, 4 December 2016

Different between public JRE and private JRE

Different between public JRE AND private JRE

  • Private JRE is always being available in the JDK and Public JRE is available outside the JDK.
  • By using private JRE we can run any .class file directly but executable file can’t be run in the private JRE.
After the installation of JDK the home folder will be C drive program file.
C:\Program Files\Java\jdk 1.8.0



  • Tools under the JDK
C:\Program Files\Java\jdk 1.8.0\bin

  • Private JRE under the JDK
C:\Program Files\Java\jdk 1.8.0\jre

  • JVM in the JRE
C:\Program Files\Java\jdk 1.8.0\jre\bin

  • Library in the JRE
C:\Program Files\Java\jdk 1.8.0\jre\lib\rt.jar

  • In JDK is 32 bit version then will be installed in the program files(x86).
  • In JDK is 64 bit version then will be installed in the program files.

  • In the JRE\bin there is exe named java.exe that it use to start the JVM.
  • JVM is not the single files but it is the collective from of the multiple .dll files and .exe files exist in the JRE\bin.
  • JAR is the tool in the JDK which is used to compress the contents of the folder and makes the .jar file.
  • rt.jar is the compressed file that contains the java library class.

No comments:

Post a Comment