Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example Analysis of Java8 simplified JRE

2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "Java8 simplified JRE example Analysis". In daily operation, I believe many people have doubts about Java8 simplified JRE example analysis problems. The editor consulted all kinds of data and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "Java8 simplified JRE example Analysis". Next, please follow the editor to study!

Benefits

1. A smaller Java environment requires less computing resources.

two。 A smaller runtime environment can better optimize performance and startup time.

3. It's always good to eliminate unused code from a security perspective.

4. These packaged applications can be downloaded faster.

Concept

There are three kinds of compact JRE, which are compact1, compact2 and compact3, and their relationship is compact1 java.io compact1.

-> java.lang compact1

-> java.util compact1

* VERBOSE *

Jdeps-v Deps.class

Deps.class-> / Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar

Deps (Deps.class)

-> java.io.PrintStream

-> java.lang.Math

-> java.lang.Object

-> java.lang.String

-> java.lang.System

-> java.util.HashSet

* RECURSIVE *

Jdeps-R Deps.class

Deps.class-> / Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar

(Deps.class)

-> java.io

-> java.lang

-> java.util

/ Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jce.jar-> / Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar

Javax.crypto (jce.jar)

-> java.io

-> java.lang

-> java.lang.reflect

-> java.net

-> java.nio

-> java.security

-> java.security.cert

-> java.security.spec

-> java.util

-> java.util.concurrent

-> java.util.jar

-> java.util.regex

-> java.util.zip

-> javax.security.auth

-> sun.security.jca JDK internal API (rt.jar)

-> sun.security.util JDK internal API (rt.jar)

-> sun.security.validator JDK internal API (rt.jar)

Javax.crypto.interfaces (jce.jar)

-> java.lang

-> java.math

-> java.security

Javax.crypto.spec (jce.jar)

-> java.lang

-> java.math

-> java.security.spec

-> java.util

/ Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/rt.jar-> / Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre/lib/jce.jar

Java.security (rt.jar)

-> javax.crypto JDK internal API (jce.jar)

Sun.security.util (rt.jar)

-> javax.crypto JDK internal API (jce.jar)

-> javax.crypto.interfaces JDK internal API (jce.jar)

-> javax.crypto.spec JDK internal API (jce.jar)

Building profile on linux

?

one

two

three

four

five

six

seven

eight

nine

ten

eleven

twelve

thirteen

fourteen

fifteen

sixteen

seventeen

eighteen

nineteen

twenty

twenty-one

twenty-two

twenty-three

$hg clone http://hg.openjdk.java.net/jdk8/jdk8/

$cd jdk8

$make images profiles:

# # Finished profiles (build time 00:00:27)

-Build times-

Start 2013-03-17 14:47:35

End 2013-03-17 14:58:26

00:00:25 corba

00:00:15 demos

00:01:50 hotspot

00:00:24 images

00:00:21 jaxp

00:00:31 jaxws

00:05:37 jdk

00:00:43 langtools

00:00:18 nashorn

00:00:27 profiles

00:10:51 TOTAL

-

Finished building Java (TM) for target 'images profiles'

$cd images

$ls-d * image

J2re-compact1-image j2re-compact2-image j2re-compact3-image j2re-image j2sdk-image

Approximate footprint of compiled compact

At this point, the study of "Java8 simplified JRE example Analysis" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report