Linux team to find those that are jars loaded by jvm

Can someone tell me what will be the unix command if I need to check if jars loaded by java are needed ..

+3
source share
3 answers

You can use lsof:

lsof -p <PID> | grep jar

use pgrep or jps to find the PID of your Java process.

+7
source

You can use the: option java -verbose:class, which shows which banks are used

+3
source

There are several ways to do this.

From your java code, you can call System.getProperty("java.class.path")which will return the entire class path as a string.

You can also get a list by adding an argument to the command line java -verbose:class

+2
source

Source: https://habr.com/ru/post/1744239/


All Articles