且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Java/CVM-引导类路径

更新时间:2023-11-18 23:26:58

-Xbootclasspath不是标准的Java选项,因此不同供应商的JVM可能不支持它.

-Xbootclasspath isn't a standard java option, so JVMs by different vendors may not support it.

另一个危险在于,它可以用于覆盖JRE中的标准类-如果您的应用程序依赖于此类覆盖的类,则在不同的JVM或同一JVM的更新版本上运行时可能会遇到问题.

Another danger lies in the fact that it can be used to override standard classes from JRE - if your application depends on such overriden classes, you may have problems with running on different JVMs or even newer versions of the same JVM.

根据Java SE文档,重写标准类会破坏Java许可:根据.不过,我在CVM文档中没有看到这样的警告.

According to Java SE documentation, overriding standard classes breaks Java license: according to Oracle documentation, "Applications that use this option for the purpose of overriding a class in rt.jar should not be deployed as doing so would contravene the Java 2 Runtime Environment binary code license.". I don't see such warning in documentation for CVM, though.

由于CDC不包含JDBC类,所以我认为您很安全.

As CDC does not include JDBC classes, I guess you're safe.