Java Reference
In-Depth Information
The following command prints the dependencies with the profile information for the SwingTest class:
jdeps -profile SwingTest.class
SwingTest.class -> C:\java8\jre\lib\rt.jar (Full JRE)
com.jdojo.profiles (SwingTest.class)
-> java.lang compact1
-> javax.swing Full JRE
The following command prints the dependencies with the profile information for both SwingTest and
RowSetTest classes:
jdeps -profile SwingTest.class RowSetTest.class
SwingTest.class -> C:\java8\jre\lib\rt.jar (Full JRE)
com.jdojo.profiles (SwingTest.class)
-> java.lang compact1
-> javax.swing Full JRE
RowSetTest.class -> C:\java8\jre\lib\rt.jar (compact3)
com.jdojo.profiles (RowSetTest.class)
-> java.lang compact1
-> java.sql compact2
-> javax.sql.rowset compact3
The following command will create three DOT files in the mydotdir directory: SwingTest.class.dot ,
RowSetTest.class.dot , and summary.dot :
jdeps -profile -dotoutput mydotdir SwingTest.class RowSetTest.class
The contents of the SwingTest.class.dot file will be
digraph "SwingTest.class" {
// Path: SwingTest.class
"com.jdojo.profiles" -> "java.lang (compact1)";
"com.jdojo.profiles" -> "javax.swing (Full JRE)";
}
The contents of the RowSetTest.class.dot file will be
digraph "RowSetTest.class" {
// Path: RowSetTest.class
"com.jdojo.profiles" -> "java.lang (compact1)";
"com.jdojo.profiles" -> "java.sql (compact2)";
"com.jdojo.profiles" -> "javax.sql.rowset (compact3)";
}
The contents of the summary.dot file will be
digraph "summary" {
"SwingTest.class" -> "rt.jar"[label="Full JRE\n",fontsize=9];
"RowSetTest.class" -> "rt.jar"[label="compact3\n",fontsize=9];
}
Search WWH ::




Custom Search