Loading class from library



  • If I have the same class with a few jars, can I force myself in the code to indicate that I want to download this class from a specific jar?



  • You mean, "one and the same class."

    1. They have the same name, but different packages - the class is always loaded with the full name of the class (recognizing the name of the package) - it's clear.
    2. They have the same name and the same package - the first one to be found and the first one to find the first one to go into the classpath (because everything, jar files)

    UPDATE: a useful Link http://www.javable.com/javaworld/tips/105_tt/ ♪


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2