Difference Between JRE Server and Client JRE

I was going through the jre server, when I extracted the serverjre tar.gz, it gave me the jdk folder. why serverJRE provides a JDK-like folder. There is also a JRE folder inside serverJRE. So which one to use, the entire serverJRE or just the JRE folder that is inside the serverJRE. Also, the contents of the JRE inside the serverJRE are similar to the JRE inside the JDK.

I do not understand the difference.

+7
java java-8
source share
3 answers

JRE Server:. It is used to deploy long Java applications on the server. It provides the highest possible speed. It has been specially tuned for maximum maximum operating speed. It has very aggressive algorithms to optimize the performance of a Java application at runtime. It also includes many monitoring tools.

Client JRE:. It is used to run Java applications on end-user systems. It contains everything to run java applications. It can run faster and require less memory.

+9
source share

From the Oracle page .

The JRE server includes monitoring tools and the JVM tool is required for server applications, but does not include browser integration (Java plugin).

So the difference is incredibly small. It also means that the difference between the JRE server and the JDK is basically that the JDK has a compiler. I didn’t even understand that they turned JRE into separate products, but over the years I don’t remember anyone offering JRE to customers.

Given that applets are almost dead, I see no good reason to load the client JRE. Again, I do not do business for desktop Java, so who knows.

+1
source share

I don’t think that people understood where the OP came from, and I just ran into this. The following is a detailed context.

Since the latest quarterly updates, the root level directory inside the jre gzipped tar ball server inside "p22187044_17095_Linux-x86-64.zip" is "jdk1.7.0_95"

IMO, this is casually on the side of Oracle. In the case when you need to work with both and try to extract them into the same directory, you will extract them into the same directory.

$ unzip p22187044_17095_Linux-x86-64.zip server-jre-7u95-linux-x64.tar.gz $ tar xzvf server-jre-7u95-linux-x64.tar.gz # Extracted files with top-level directory: "jdk1.7.0_95" # This polluted my previously extracted JDK (See differences below). # Get a clean JDK 7 again: $ rm -rf jdk1.7.0_95/ $ tar xzvf jdk-7u95-linux-x64.tar.gz # Try again with the JRE; this time creating a container directory for the tar extraction: $ mkdir jre1.7.0_95 && tar xzvf server-jre-7u95-linux-x64.tar.gz -C jre1.7.0_95/ # Directory "jre1.7.0_95/" contains top-level directory "jdk1.7.0_95" # Let look at the differences: $ diff -qr jdk1.7.0_95 jre1.7.0_95/jdk1.7.0_95/ Only in jdk1.7.0_95/bin: ControlPanel Only in jdk1.7.0_95/bin: javaws Only in jdk1.7.0_95/bin: jcontrol Only in jdk1.7.0_95/bin: jmc Only in jdk1.7.0_95/bin: jmc.ini Only in jdk1.7.0_95/jre/bin: ControlPanel Only in jdk1.7.0_95/jre/bin: java_vm Only in jdk1.7.0_95/jre/bin: javaws Only in jdk1.7.0_95/jre/bin: jcontrol Only in jdk1.7.0_95/jre/lib/amd64: libdeploy.so Only in jdk1.7.0_95/jre/lib/amd64: libjavaplugin_jni.so Only in jdk1.7.0_95/jre/lib/amd64: libnpjp2.so Files jdk1.7.0_95/jre/lib/charsets.jar and jre1.7.0_95/jdk1.7.0_95/jre/lib/charsets.jar differ Only in jdk1.7.0_95/jre/lib: deploy Only in jdk1.7.0_95/jre/lib: deploy.jar Only in jdk1.7.0_95/jre/lib: desktop Files jdk1.7.0_95/jre/lib/ext/localedata.jar and jre1.7.0_95/jdk1.7.0_95/jre/lib/ext/localedata.jar differ Only in jdk1.7.0_95/jre/lib/images: icons Only in jdk1.7.0_95/jre/lib: javaws.jar Files jdk1.7.0_95/jre/lib/jfxrt.jar and jre1.7.0_95/jdk1.7.0_95/jre/lib/jfxrt.jar differ Files jdk1.7.0_95/jre/lib/jsse.jar and jre1.7.0_95/jdk1.7.0_95/jre/lib/jsse.jar differ Only in jdk1.7.0_95/jre/lib: locale Only in jdk1.7.0_95/jre/lib: plugin.jar Files jdk1.7.0_95/jre/lib/rt.jar and jre1.7.0_95/jdk1.7.0_95/jre/lib/rt.jar differ Only in jdk1.7.0_95/jre/lib/security: javaws.policy Only in jdk1.7.0_95/jre: plugin Only in jdk1.7.0_95/lib: missioncontrol Files jdk1.7.0_95/lib/tools.jar and jre1.7.0_95/jdk1.7.0_95/lib/tools.jar differ Only in jdk1.7.0_95/man/ja/man1: javaws.1 Only in jdk1.7.0_95/man/ja_JP.UTF-8/man1: javaws.1 Only in jdk1.7.0_95/man/man1: javaws.1 # And the size of each: $ du -sh jdk1.7.0_95/ jre1.7.0_95/jdk1.7.0_95/ 301M jdk1.7.0_95/ 235M jre1.7.0_95/jdk1.7.0_95/ 

In the end, it really depends on your application, which you should use. For vendor applications. I usually refer to their recommendations. If they don’t exist, I use the JDK simply because it includes more “things” that I don’t want to find out, it is necessary at some later date, because there is no easy way to implement all the options for using an interactive application.

0
source share

All Articles