I have a java application and it needs linking some external library( actually jar file) to load at runtime. How can I do that?
I have a java application and it needs linking some external library( actually jar
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.