Developing with Bookmap API (step-by-step)
-
- Posts: 517
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 21 times
- Been thanked: 81 times
Re: Developing with Bookmap API (step-by-step)
Hi. I am trying to reproduce the issue. Meanwhile, please check a private message from me.
Tags:
-
- Posts: 2
- Joined: Sun Aug 28, 2022 7:49 am
- Been thanked: 1 time
Re: Developing with Bookmap API (step-by-step)
I'm having the same problems on MacOS. Were you able to find a solution?
-
- Posts: 517
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 21 times
- Been thanked: 81 times
Re: Developing with Bookmap API (step-by-step)
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
https://youtu.be/wToHfQ6R_OQ?list=PLzaG ... zX1v&t=125
https://www.youtube.com/watch?v=OKSkrG_ ... el=Bookmap
-
- Posts: 2
- Joined: Sun Aug 28, 2022 7:49 am
- Been thanked: 1 time
Re: Developing with Bookmap API (step-by-step)
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
EDIT: Nevermind this post, I fixed the issue. Thanks again
- Attachments
-
- Here is the error message
- Screen Shot 2022-10-15 at 4.41.31 AM.png (39.43 KiB) Viewed 4068 times
-
- Posts: 3
- Joined: Wed Jun 29, 2022 8:47 am
- Has thanked: 2 times
Re: Developing with Bookmap API (step-by-step)
Hello, im trying to load my fist plugin in BM, Im using intelij and keep getting this message
Any ideas? Many thanks
Any ideas? Many thanks
- Attachments
-
- Screenshot 2022-11-18 at 17.40.16.png (17.76 KiB) Viewed 3499 times
-
- Posts: 517
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 21 times
- Been thanked: 81 times
Re: Developing with Bookmap API (step-by-step)
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.
-
- Posts: 3
- Joined: Wed Jun 29, 2022 8:47 am
- Has thanked: 2 times
Re: Developing with Bookmap API (step-by-step)
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
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
-
- Posts: 517
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 21 times
- Been thanked: 81 times
Re: Developing with Bookmap API (step-by-step)
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".
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".
-
- Posts: 3
- Joined: Wed Jun 29, 2022 8:47 am
- Has thanked: 2 times