The same Java class can be present in multiple JAR files in your class path 
which may be a pain to debug. What I found helpful is to turn on class loading 
tracing - add the "-XX:+TraceClassLoading" option.

This lets you know which exact location the class was loaded from.

It works in Oracle Java:
http://www.oracle.com/technetwork/articles/java/vmoptions-jsp-140102.html

Not sure about the other JVM implementations, they may have their own variants 
of the option. 

If that does not help, try the option -verbose:class which should be available 
in all JVMs.

HTH,
Tomas

Tomas Pavelka
CA Technologies
Sr Software Engineer

CA CZ, s.r.o 
V Parku 12, 
148 00 Praha 
Czech Republic

Office: +25996 | [email protected]



Id. Císlo 25694073, z obchodního rejstříku, vedeného Městským soudem v Praze, 
oddíl C, vložka 61808 / Id. No. 25694073, registered in the Commercial Register 
maintained by the Municipal Court in Praque, Section C, File 61808

Reply via email to