title: Java - Load a class outside of classpath. What are the options
body: <p>I got a Java product which is used by many clients. The product gets added as a jar into the client's (say for example XYZ company who wants to use his product for their needs) code base and works independently. Its a stand alone product and all the client projects depends (maven dependency) on this one product (which again is a couple of java projects bundled as a jar rolled out with a license)</p>
  
  <p>Now i am in a situation to make the engine use a class outside of it's class path. It's a client class and I don't want to move that class into the products code base and keep it outside but still want to use it.</p>
  
  <p>Just to confirm I tested it and its saying that class not found as expected. One option i can think of is jar those specific classes and add it to my product's classpath</p>
  
  <p>Is their any other better ideas?</p>