NOT PORTED YET.
Since the java -cp
/ java -classpath
is one huge string of colon separated paths, it's nicer to show them one
per line using the scripts in DevOps-Bash-tools or DevOps-Perl-tools
repos:
java_show_classpath.sh
java_show_classpath.pl
Crude shell pipeline to do similar:
ps -ef |
grep java |
tee /dev/stderr |
awk '{print $2}' |
xargs -L1 jinfo |
grep java.class.path |
tr ':' '\n'
although if it's just jinfo
you're missing in the $PATH
it would be better to just:
PATH="$PATH:/path/to/bin/containing/jinfo" java_show_classpath.sh
Java jar files are just tars of the byte-compiled Java classes.
You can inspect them using the good old unix tar command, eg.:
tar tvf mysql-connector-j-*.jar
The directory layout of the class files corresponds to the class hierarchy eg.
is accessed as com.mysql.jdbc.Driver
in Java code.
Just a jar, no dependency like Scala predef.
java -jar my.jar