• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do I scan my system for this bad class file?  RSS feed

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using Java 1.5 on a Mac 10.5.6. I'm trying to write some unit tests that depend on the version 2.7.0 library of xalan. However, somehow an older version is getting into my classpath and causing the below "NoSuchMethodError". How do I scan my system for the offending class and any JAR or other file it might be a part of?

Thanks, - Dave

 
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add -verbose:class as a JVM option to the script that starts the JVM. This will start printing out the jar file names from which the each of classes are being loaded. Keep in mind, that the logging is going to be too much because of the classes involved. You might want to redirect the output to some file. You can then search that file for this specific class and figure out which jar file was used to load the class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!