How to verify that a .jar or a class has been already loaded by the ClassLoader in Java?

To trace which classes are loaded by the JVM you could add.

To trace which classes are loaded by the JVM you could add -verbose:class Display information about each class loaded. To your options before starting the JVM. It wille create an output like Opened C:\Program Files\Java\jre6\lib\rt.

Jar Loaded java.lang. Object from C:\Program Files\Java\jre6\lib\rt. Jar Loaded java.io.

Serializable from C:\Program Files\Java\jre6\lib\rt. Jar Loaded java.lang. Comparable from C:\Program Files\Java\jre6\lib\rt.

Jar Loaded java.lang. CharSequence from C:\Program Files\Java\jre6\lib\rt. Jar Loaded java.lang.

String from C:\Program Files\Java\jre6\lib\rt.jar.

A Sun Microsystems-compatible JVM will also show classes as they load if you use a -verbose:class JVM option. However, you cannot access this information programmatically.

One solution I get is like you can check weather the classpath has the jar present or not. P. S:- please comment if there are any mistakes in the answer.

Let the other people know from my mistake than they doing it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions