[英]What is correct location of src.zip file in JDK?
What should be the correct location of src.zip in JDK? src.zip在JDK中的正确位置应该是什么?
Should it be JAVA_HOME/lib/src.zip
?应该是
JAVA_HOME/lib/src.zip
吗?
or或者
Should it be JAVA_HOME/src.zip
?应该是
JAVA_HOME/src.zip
吗?
Which one is correct?哪一个是正确的?
JDK version - openjdk11 JDK版本-openjdk11
It depends on the version of Java you are using, with这取决于您使用的 Java 的版本,与
$JAVA_HOME/lib/src.zip
1 $JAVA_HOME/lib/src.zip
1$JAVA_HOME/src.zip
$JAVA_HOME/src.zip
1 See also Project Jigsaw . 1另见拼图项目。 More specifically, JEP 201 and JEP 220 .
更具体地说, JEP 201和JEP 220 。
mostly, the JDK source code is named src.大多数情况下,JDK 源代码被命名为 src。 zip, and located at the root folder of the JDK installed path.
zip,位于JDK安装路径的根文件夹。 in your question Java 11, it is
$JAVA_HOME/lib/src.zip
and it will be different in other versions.在您的问题 Java 11 中,它是
$JAVA_HOME/lib/src.zip
并且在其他版本中会有所不同。 stating the Java version that you are currently using in the question will help you to find a better answer在问题中说明您当前使用的 Java 版本将帮助您找到更好的答案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.