Page 4 of 4

Re: Developing with Bookmap API (step-by-step)

Posted: Tue Mar 15, 2022 8:40 am
by Andry API support
Hi. I am trying to reproduce the issue. Meanwhile, please check a private message from me.

Re: Developing with Bookmap API (step-by-step)

Posted: Thu Oct 13, 2022 4:18 am
by soundslikecash
I'm having the same problems on MacOS. Were you able to find a solution?

Re: Developing with Bookmap API (step-by-step)

Posted: Thu Oct 13, 2022 7:30 am
by Andry API support
Hi, what IDE do you use? We no longer encourage our customers to use Eclipse for development. Please use Intelij IDEA. If you are using it already can you please clarify what the issue is. If not, please use Intellij IDEA. Here are the videos how to set up the project in IDEA.
https://youtu.be/wToHfQ6R_OQ?list=PLzaG ... zX1v&t=125
https://www.youtube.com/watch?v=OKSkrG_ ... el=Bookmap

Re: Developing with Bookmap API (step-by-step)

Posted: Sat Oct 15, 2022 8:48 am
by soundslikecash
I followed both videos but am now getting an error message when I try to link the Gradle project. Do you know of any solutions for this problem? Thanks for getting back to me so quickly.

EDIT: Nevermind this post, I fixed the issue. Thanks again

Re: Developing with Bookmap API (step-by-step)

Posted: Fri Nov 18, 2022 6:18 pm
by tjcarvalheiro
Hello, im trying to load my fist plugin in BM, Im using intelij and keep getting this message
Any ideas? Many thanks

 

Re: Developing with Bookmap API (step-by-step)

Posted: Sat Nov 19, 2022 11:23 am
by Andry API support
Looks like your plugin references some missing class. Can I see your log for details? It would be perfect if I saw your source code. If you are OK with it, please attach it. You can send it to me in a private mesage if you don't want to expose it in this thread.

Re: Developing with Bookmap API (step-by-step)

Posted: Tue Nov 29, 2022 5:41 pm
by tjcarvalheiro
Thanks @AndreyR I finally managed to get my plugin to start loading.
Now Im facing a issue where my code depends on an external lib to handle json - Jackson.
But every time I call code on that lib I get a method or class not found, any recommendations on how to address this?

Thanks

Re: Developing with Bookmap API (step-by-step)

Posted: Wed Nov 30, 2022 2:25 pm
by Andry API support
Hi,
Bookmap does not have the jackson lib. If you use Gradle build task for your strategies it will not include the jackson library to the jar and classes from jackson will always be missing.
You need to create a `fat` jar - an archive which will contain both your strategy and the jackson library (dependency). There are guides how to create a fat jar, for example this one
https://www.baeldung.com/gradle-fat-jar
or you can just Google "Gradle fat jar task".

Re: Developing with Bookmap API (step-by-step)

Posted: Wed Nov 30, 2022 5:59 pm
by tjcarvalheiro
Many thanks @AndreyR just made it work