0

I have a java application and it needs linking some external library( actually jar file) to load at runtime. How can I do that?

Dewsworld
  • 13,367
  • 23
  • 68
  • 104

1 Answers1

1

Not quite sure if link is the term you want to use, but in Java you typically just need to add your jar to the class path to make its classes and their methods/fields available.

If you mean you need to dynamically load a new jar into an existing class loader you'll probably need to build a custom class loader.

Femi
  • 64,273
  • 8
  • 118
  • 148