How to load external lib to BM?

Custom indicators, trading strategies, data export and recording and more...
blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

How to load external lib to BM?

Post by blk » Sun Mar 29, 2020 5:09 pm

Hi,

I built and addon that uses an external lib that is not included on Bookmap/lib directory. 

I'm wondering if there is a way to load it?

Thanks,

Andry API support
Posts: 548
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 25 times
Been thanked: 85 times

Re: How to load external lib to BM?

Post by Andry API support » Mon Mar 30, 2020 8:26 am

Hi blk,
you can either:
 - pack a fat jar: repack external libs into your jar (if it is not prohibited by an external lib license);
 - create instances of classes from external jars with your own class loader.

blk
Posts: 44
Joined: Fri Nov 01, 2019 8:59 pm
Has thanked: 7 times

Re: How to load external lib to BM?

Post by blk » Mon Mar 30, 2020 9:55 pm

thank you Andrey! 👍

Post Reply