You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eg:my Application has two jar:
com.github.test.Class1 in jar1
com.github.test.Class1 in jar2
how can i know which class load
i know can use this code: ProtectionDomain pd = classForName(pcm).getProtectionDomain(); println( pd!=null?(pd.getCodeSource()!=null?pd.getCodeSource().getLocation():"CodeSource为空!"):"ProtectionDomain为空!");
will show classnotfoundexception
The text was updated successfully, but these errors were encountered:
eg:my Application has two jar:
com.github.test.Class1 in jar1
com.github.test.Class1 in jar2
how can i know which class load
i know can use this code:
ProtectionDomain pd = classForName(pcm).getProtectionDomain(); println( pd!=null?(pd.getCodeSource()!=null?pd.getCodeSource().getLocation():"CodeSource为空!"):"ProtectionDomain为空!");
will show classnotfoundexception
The text was updated successfully, but these errors were encountered: