Hem Bhagat
Hem Bhagat

Reputation: 413

What is correct location of src.zip file in JDK?

What should be the correct location of src.zip in JDK?

Should it be JAVA_HOME/lib/src.zip?

or

Should it be JAVA_HOME/src.zip?

Which one is correct?

JDK version - openjdk11

Upvotes: 2

Views: 1977

Answers (2)

Elliott Frisch
Elliott Frisch

Reputation: 201537

It depends on the version of Java you are using, with

  • Java 9+ it should be $JAVA_HOME/lib/src.zip1
  • Java 8 and earlier it should be $JAVA_HOME/src.zip

1See also Project Jigsaw. More specifically, JEP 201 and JEP 220.

Upvotes: 2

user13214344
user13214344

Reputation:

mostly, the JDK source code is named src. zip , and located at the root folder of the JDK installed path. in your question Java 11, it is $JAVA_HOME/lib/src.zip and it will be different in other versions. stating the Java version that you are currently using in the question will help you to find a better answer

Upvotes: 0

Related Questions