Developing with Bookmap API (step-by-step)

Custom indicators, trading strategies, data export and recording and more...
AndreyR
Posts: 421
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 17 times
Been thanked: 71 times

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

Post by AndreyR » Tue Jul 14, 2020 9:39 am

Hi dm08,
You likely need to specify the JRE. Pls check the link I have sent to you in a private message. You need Java (JDK) 14 for Mac version and Java 8 for Windows

Tags:

gravanoc
Posts: 4
Joined: Mon Mar 16, 2020 1:48 am

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

Post by gravanoc » Tue Sep 29, 2020 8:39 pm

Hello, I have followed the instructions above, but there have been a couple of problems.  The first issue was getting the import process to follow through, i.e. clicking the Finish button did nothing, but I found a solution on StackOverflow that required finding Buildship and clicking the Installed button, updating it, & restarting Eclipse.  The second issue I haven't found a fix for - when the import finishes there are no extra dependencies shown in the Project/Package Explorer window (it's called Package Explorer on my end, is this the new terminology?).  Please see the attached screenshot for clarification. 

Essentially, when I try to export the simple-demo-master project, it shows nothing in the "Select resources to export" window.  This seems to be a different issue from another poster, who you suggested the Gradle refresh for.  I already have the build.gradle item, & refreshing that did nothing extra.  

Thanks.
Attachments
JavaDependencies.JPG
JavaDependencies.JPG (94.73 KiB) Viewed 3201 times

AndreyR
Posts: 421
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 17 times
Been thanked: 71 times

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

Post by AndreyR » Wed Sep 30, 2020 12:28 pm

Hi gravanoc,
please delete your project (do not check "delete the project contents on disk"). Reimport the project selecting the inner simple-demo-master folder as root directory not the outer one (see the pic).
Attachments
rootDir.jpg
rootDir.jpg (71.34 KiB) Viewed 3195 times

gravanoc
Posts: 4
Joined: Mon Mar 16, 2020 1:48 am

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

Post by gravanoc » Wed Sep 30, 2020 8:04 pm

Thank you, that worked.  Unfortunately I've experienced another problem with the export generating the following error (one for each class in the Indicators): Class files on classpath not found or not accessible for ... (foldername) /indicators/(classname).java

I tried cleaning the project as suggested on SO, but no dice in this case.  Please advise, thank you.

 
Attachments
JARIssue.JPG
JARIssue.JPG (163.57 KiB) Viewed 3190 times

gravanoc
Posts: 4
Joined: Mon Mar 16, 2020 1:48 am

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

Post by gravanoc » Thu Oct 01, 2020 3:27 am

I was able to resolve the problem by following the instructions here: https://sites.miis.edu/dreadkingrathalo ... -resolved/

dgtrade
Posts: 2
Joined: Sat Apr 10, 2021 12:19 pm

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

Post by dgtrade » Sat Apr 10, 2021 1:29 pm

 

Hi Team,

I receive attached error message when importing the jar file that that I created from simple-demo-master according to the steps described in this post. I created the jar file a few times inclduing Gradle Project Refresh. Do you know what's missing ? The error message suggests a log file is written but it's not Thanks (Bookmap Version 7.1.0 build:58) 

Bookmap Error Message.PNG
Bookmap Error Message.PNG (44.21 KiB) Viewed 1567 times
Eclipse Project.PNG
Eclipse Project.PNG (30.27 KiB) Viewed 1567 times

AndreyR
Posts: 421
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 17 times
Been thanked: 71 times

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

Post by AndreyR » Mon Apr 12, 2021 6:48 am

Log files usually are in C:\Bookmap\Config\Logs for Windows or in a similar location for other OS. If the folder is missing let us know.
Bookmap 7.1 runs on Java 1.8 (aka 8). This error usually happens if the compiler has a newer version. But we need to take a look into the log to make sure.
You may try the following: Eclipse IDE -> right click on your project -> Properties -> Java Compiler
Check the JDK Compliance version and change it to 1.8 if needed ("Enable project specific settings" must be ticked to change the default settings). Then, rebuild your project.

superbean
Posts: 2
Joined: Fri Jun 18, 2021 11:14 am

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

Post by superbean » Sat Oct 23, 2021 2:55 pm

How do you get Project and External  Dependencies and JAR Files. 

Thanks 
Attachments
eclipse-workspace - Eclipse IDE 2021-10-23 10_54_57 AM.png
eclipse-workspace - Eclipse IDE 2021-10-23 10_54_57 AM.png (184.96 KiB) Viewed 243 times
Developing with Bookmap API (step-by-step) - Bookmap forum - Google Chrome 2021-10-23 10_38_09 AM.png
Developing with Bookmap API (step-by-step) - Bookmap forum - Google Chrome 2021-10-23 10_38_09 AM.png (294.84 KiB) Viewed 243 times

superbean
Posts: 2
Joined: Fri Jun 18, 2021 11:14 am

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

Post by superbean » Sat Oct 23, 2021 2:55 pm

How do you get Project and External  Dependencies and JAR Files. 

Thanks 

AndreyR
Posts: 421
Joined: Mon Jul 09, 2018 11:18 am
Has thanked: 17 times
Been thanked: 71 times

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

Post by AndreyR » Mon Oct 25, 2021 11:09 am

Hi, you need to add libraries to your build.gradle file and then rebuild the project. Take a look at this example
https://bookmap.com/knowledgebase/docs/ ... pendencies
api-core and api-simplified are the Bookmap API libraries.
Also, you may want to look through the whole tutorial.

Post Reply