gpt4 book ai didi

java -/Library/Java/Extensions 的作用是什么 - 从那里添加或删除类是否安全?

转载 作者:搜寻专家 更新时间:2023-11-01 03:10:01 25 4
gpt4 key购买 nike

/Library/Java/Extensions 目录在 Mac OSX 的 Java 框架中扮演什么角色?

它是否由 Apple 的 Java 更新自动更新,在不影响 JVM 或 Java 应用程序稳定性的情况下修改目录包含的内容是否安全?

编辑:具体来说,如果 Extensions 中的现有 jar 导致冲突,那么从 Extensions 中删除类的含义是什么目录?

最佳答案

看看Java Development Guide for Mac .

Java can be extended by adding custom.jar, .zip, and .class files, as well as native JNI libraries, into an extensions directory. In OS X, put your extensions in /Library/Java/Extensions/. Java automatically looks in this directory as it is starting up the Java Virtual Machine.

Putting extensions in /Library/Java/Extensions/ loads those extensions for every user on that particular computer. It is preferable to limit which users can use certain extensions by putting them in the ~/Library/Java/Extensions/ directory inside the appropriate users’ home directories. By default, that folder does not exist, so you may need to make it.Try to include all of your dependent libraries in your application rather than relying on the Java Extensions directory, because its contents are unversioned and cannot accommodate for multiple versions of the same library.

关于java -/Library/Java/Extensions 的作用是什么 - 从那里添加或删除类是否安全?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12880678/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com