Last active
October 24, 2020 01:09
-
-
Save siberex/5023068f6c04fa45974b13af9d4e7d95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find which jar file contains specific Java class or package | |
WHERE=$JAVA_HOME | |
WHAT="org.graalvm.polyglot" | |
for f in $(find "$WHERE" -name '*.jar' -type f); do echo $f >&2 && "$JAVA_HOME/bin/jar" tvf $f; done | grep "$WHAT" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment