Having hard time getting Bookmap sample projects to work with IntelliJ

Custom indicators, trading strategies, data export and recording and more...
dmavro
Posts: 54
Joined: Thu Sep 24, 2020 9:20 pm
Been thanked: 2 times

Having hard time getting Bookmap sample projects to work with IntelliJ

Post by dmavro » Thu Oct 09, 2025 4:12 pm

Hello,
I wanted to try and make a change to an add-on that I developed using Eclipse when I started with Bookmap a few years ago so I used the Simplified API setup videos to install IntelliJ this time around and I wasn’t able to get any of my projects to compile. I decided to try following the DemoStrategies setup directions to see if it was something with the way the IDE was set up or if it was something with each of my projects’ Gradle configurations and I was also unable to get that to work. However, after making some changes to my Gradle settings I was finally able to get my projects to build and create their jar files, but I was still unable to get the DemoStrategies to work. I ended up giving the simple-demo project a try and could not get that to work either.

After all that I decided to try and create something from scratch, so I followed the Drawing indicators video I found on youtube but when I got to the step where you add the Indicator to the MovingAverage class IntelliJ does not acknowledge the simplified API, even though I see the Gradle Bookmap API libraries in the External Libraries section of the Project pane.

At this point all i want to do is make sure i have the IDE set up properly before I continue to investigate all the different errors I’ve been getting after each change I’ve made along the way. What are the preferred JDK and Gradle versions currently for the Simplified API? I originally let IntelliJ install JDK25 and use its Gradle integration. I then installed and tried using JDK’s 11 and 14 to no avail but I'm still using IntelliJ's Gradle integration. Is that sufficient or should I have installed Gradle separately like we did for eclipse?

Whats confusing me the most is that my addons were developed using one of the JDK 8 updates and Gradle version 6.8.3 and I was able to get them to work somehow but i cant seem to get 2 Bookmap projects that appear to use newer versions of Java and Gradle to work or a get a new project to work.     

Any insight would be appreciated.
 
Thanks,
Dean

dmavro
Posts: 54
Joined: Thu Sep 24, 2020 9:20 pm
Been thanked: 2 times

Re: Having hard time getting Bookmap sample projects to work with IntelliJ

Post by dmavro » Sat Oct 11, 2025 2:14 pm

I seem to have worked out the issue i was having. I noticed some files in my my C drive folder that were related to my prior Eclipse installation and all the Gradle versions i had previously installed. I had been planning on doing a clean install of windows on that computer for quite some time now so i figured now couldnt be a better time. After all of the Eclipse data and the Gradles were removed from the PC i was able to get DemoStrategies to work the next time i tried.  Now i only have IntelliJ, JDK14 and JDK25 installed and i have no separate Gradle installations on the computer and things appear to be functioning the way they are intended. I was actually able to get JDK 25 installed in IntelliJ and use my Bookmap versions API 7.6.0.28 to compile when i use it in my build.gradle file which i was unable to do previously. 

I still had one more question. Is there any reason for me to update the Gradle version im using in all my previous projects? Most use 6.8.3 and one had 7.5.1. Thought about doing it to just to be up to date or is it one of those "If it aint broke, dont fix it" scenarios?


Thanks,

Dean

Post Reply