Reputation: 267
I have a program that imports its required classes from a .jar source.
However I have also unzipped said .jar source in order to search its file directory to gather up class names for a list within the same program.
The problem is that the class ** appears more than once in the classpath, this is due to it being simultaneously in the bin and as a library. I need both elements for separate, yet equally code features.
I've found removing the file directory of the .jar source solves the problem however my list is now blank.
Anyone know of a way to do both?
Upvotes: 1
Views: 70
Reputation: 31212
Based on what you said above in the comments, if your package names start with com.somethingfromsourceforge.*
then I would change com.somethingfromsourceforge
to com.hopeless
and the pathing issue should be resolved. Try this and let us know.
Upvotes: 1