专栏首页一个会写诗的程序员的博客使用Kotlin 1.1.5 的REPL 来简单分析一下Java 9 中的$ jmod list java.base.jmod《Kotlin极简教程》正式上架:

使用Kotlin 1.1.5 的REPL 来简单分析一下Java 9 中的$ jmod list java.base.jmod《Kotlin极简教程》正式上架:

$ jmod list java.base.jmod

命令行列出了 模块 java.base.jmod 中所有文件(.class文件, .dat, .jar, .cfg, .dylib 等 )共 5761个文件:

/Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/jmods$ jmod list java.base.jmod|wc -l
    5761

我们来看下都有哪些包里面的类:

我们把 java.base.jmod中的所有文件list放到文件中:

val lines = File("/Users/jack/java/java.base.jmods.txt").readLines()
val set = HashSet<String>()
lines.forEach{ 
    set.add(it.substring(0,it.lastIndexOf("/")) ) 
}
>>> set.forEach{println(it)}

我们可以看到java.base.jmod中都有哪些核心API的包:

classes/java/util/stream
classes/jdk/internal/vm/annotation
classes/jdk/internal/org/objectweb/asm/tree/analysis
bin
classes/java/security/cert
classes/sun/nio
conf
classes/sun/net/sdp
classes/META-INF/services
classes/sun/reflect/generics/repository
classes/java/text
classes/sun/reflect/generics/parser
classes/sun/text/spi
classes/sun/usagetracker
lib/jli
classes/sun/net/www/protocol/http
classes/javax/crypto/interfaces
classes/jdk/internal
classes/jdk/internal/loader
classes/sun/net/dns
classes/javax/security/auth
classes/sun/security/provider
classes/java/time/format
classes/sun/security/internal/interfaces
classes/sun/security/provider/certpath/ssl
classes/sun/launcher
classes/jdk/internal/vm/cds/resources
classes/sun/security/internal/spec
classes/sun/net/ext
classes/sun/util/resources
classes/java/lang
classes/sun/net/www/content/text
classes/sun/security/tools
classes/jdk/internal/reflect
classes/java/util/function
classes/sun/security/util
classes/java/util/spi
classes/sun/reflect/generics/tree
classes/jdk/internal/misc
classes/jdk/internal/perf
classes/sun/util/cldr
classes/jdk/internal/org/objectweb/asm/commons
classes/jdk/internal/org/xml/sax
classes/jdk/internal/util/xml/impl
classes/sun/invoke/util
classes/sun/util/resources/cldr
classes/sun/reflect/generics/factory
classes/com/sun/net/ssl/internal/www/protocol/https
classes/jdk/internal/org/objectweb/asm/tree
classes/java/net
classes/sun/security/rsa
classes/sun/launcher/resources
classes/sun/net/www
classes/java/util/concurrent/atomic
classes/java/nio/channels
classes/sun/nio/fs
conf/security/policy
classes/sun/reflect/generics/reflectiveObjects
classes/sun/util/calendar
classes/java/security/acl
classes/javax/net/ssl
classes/jdk/internal/util
classes/sun/text/resources
classes/jdk/internal/math
include
classes/java/util
classes/java/lang/reflect
classes/sun/reflect/misc
classes/java/io
include/darwin
classes/sun/reflect/annotation
classes/java/math
classes/java/nio/channels/spi
classes/sun/net/ftp
classes/java/lang/annotation
classes/sun/util/locale/provider
classes/java/time/temporal
classes/sun/text/bidi
classes/sun/util/spi
classes/sun/security/jca
lib/security
classes/java/security/spec
classes/sun/net/www/http
classes/jdk/internal/org/objectweb/asm
classes/sun/net/www/protocol/jar
classes/sun/net/util
classes/sun/text/normalizer
classes/java/net/spi
classes/apple/security
classes/java/lang/module
classes/jdk/internal/ref
classes/sun/text/resources/cldr
classes/jdk/internal/org/objectweb/asm/signature
classes/sun/security/pkcs
classes/jdk/internal/module
classes/jdk/internal/vm
lib
classes/sun/net/ftp/impl
lib/server
classes/sun/net/www/protocol/jrt
classes/sun/net/www/protocol/https
classes/java/lang/invoke
classes/jdk/internal/jrtfs
classes/java/time/zone
classes/sun/text
classes/sun/net
classes/java/nio/charset/spi
conf/security
legal
classes/java/security/interfaces
classes/sun/security/provider/certpath
classes/javax/security/cert
conf/security/policy/limited
classes/java/util/regex
classes/sun/net/spi
classes/java/nio/charset
classes/java/nio/file/attribute
classes/java/util/concurrent
classes/javax/security/auth/x500
classes/java/lang/ref
classes/sun/net/smtp
classes/jdk/internal/jmod
classes/javax/crypto
classes/com/sun/java/util/jar/pack
classes/java/time
classes/jdk/internal/jimage
classes/sun/net/www/protocol/http/ntlm
classes/sun/security/ssl
classes/sun/security/x509
classes/sun/util/logging
classes/sun/net/idn
classes/sun/net/www/protocol/ftp
classes/java/util/zip
classes/sun/reflect/generics/visitor
classes
classes/java/nio
classes/com/sun/net/ssl
classes/java/util/jar
classes/javax/security/auth/spi
classes/sun/net/www/protocol/jmod
classes/sun/security/pkcs12
classes/java/text/spi
classes/sun/security/pkcs10
classes/sun/security/timestamp
classes/javax/net
classes/javax/security/auth/callback
classes/java/nio/file/spi
classes/javax/crypto/spec
classes/com/sun/net/ssl/internal/ssl
classes/com/sun/crypto/provider
classes/jdk/internal/logger
classes/sun/util/locale
classes/java/nio/file
classes/jdk/internal/jimage/decompressor
classes/sun/invoke
classes/sun/security/validator
classes/com/sun/security/cert/internal/x509
classes/jdk/internal/org/objectweb/asm/util
classes/sun/reflect/generics/scope
classes/sun/invoke/empty
classes/sun/net/www/protocol/mailto
classes/com/sun/security/ntlm
classes/jdk/internal/util/xml
classes/sun/nio/ch
classes/jdk/internal/util/jar
classes/jdk/internal/org/xml/sax/helpers
classes/sun/net/www/protocol/file
classes/java/time/chrono
classes/javax/security/auth/login
classes/sun/nio/cs
classes/sun/util
conf/security/policy/unlimited
classes/sun/security/tools/keytool
classes/sun/security/action
classes/java/security
classes/java/util/concurrent/locks

非常感谢 if (boy) { 帅气英俊潇洒} else { 魔鬼身材天使脸蛋美丽动人女神气质} 的您。大家请多支持!!!您的支持,是我源源不断的写作的动力! 如果您有任何问题,欢迎随时与我交流~


本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • java.base.jmod

    /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/jmods$ jmod list java....

    一个会写诗的程序员
  • 这个 Log4j 的报错,会导致系统的 log4j.xml 配置(失效)被覆盖重置。SLF4J: Class path contains multiple SLF4J bindings

    这个 Log4j 的报错,会导致系统的 log4j.xml 配置(失效)被覆盖重置。

    一个会写诗的程序员
  • 【Kotlin Spring Boot 服务端开发: 问题集锦】 Spring Security : 自定义AccessDeniedHandler 处理 Ajax 请求

    【Kotlin Spring Boot 服务端开发: 问题集锦】 Spring Security : 自定义AccessDeniedHandler 处理 Aja...

    一个会写诗的程序员
  • .NET/C# 推荐一个我设计的缓存类型(适合缓存反射等耗性能的操作,附用法)

    发布于 2018-09-02 14:27 更新于 2018-09...

    walterlv
  • ArchUnit, 代码结构规范检查神器,你值得拥有

    本文将向大家介绍一个代码结构检查的神器 - - ArchUnit。在正式介绍ArchUnit之前,先请大家思考一下:

    孟君
  • 马走日(bfs)

    题目 江湖是什么,对于在象棋界厮杀的大钉来说, 江湖就是一个矩阵,他的目标,就是在江湖之中骑着马,从他的位置出发,走到终点。

    用户4492257
  • 用NumPy写深度模型,用Julia可微分编程写函数,这是WAIC开发者日

    WAIC 世界人工智能大会已于近日在上海开幕。在昨天由机器之心承办的开发者日主单元上,阿里技术副总裁贾扬清、亚马逊机器学习副总裁 Alex Smola、百度 A...

    机器之心
  • 每个程序员都该知道的 5 个定律

    编译:伯乐在线/孙腾浩,英文:Raphael Brugier 定律或称法则,可以指导我们并让我们在同伴的错误中学习。 这篇文章中,我将介绍我每次设计或实现软件时...

    企鹅号小编
  • 策略模式

    策略模式定义了一系列的算法,并将每一个算法封装起来,而且使它们还可以相互替换,策略模式让算法独立于使用它的客户而独立变化。

    卡尔曼和玻尔兹曼谁曼
  • 全员开拍!来腾讯微校短视频大赛秀#不一样开学季#

    一名在武汉读书、生活了7年的大学生佳晨,历时7天、近百余个小时,走遍武汉大学、华中科技大学、华中师范大学、中国地质大学(武汉)、武汉理工大学、中南财经政法大学...

    鹅老师

扫码关注云+社区

领取腾讯云代金券