Developing with Bookmap API (step-by-step)

Custom indicators, trading strategies, data export and recording and more...
birdienumnum68cr
Posts: 6
Joined: Thu Dec 16, 2021 1:56 am

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

Post by birdienumnum68cr » Sun Jan 23, 2022 9:39 pm

Screenshot from 2022-01-24 08-33-26.png
Screenshot from 2022-01-24 08-33-26.png (511.87 KiB) Viewed 5535 times
Hi dm08,

I had the same issue.

The issue is in the eclipse build path settings.

Go to Java Build Path Libraries tab and use edit button.

Your JRE is 'unbound', use the Workspace default JRE - see how in the screenshot mine is selected  (yours is not set).

 

Tags:

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Tue Mar 08, 2022 8:23 pm

Hello,

I tried to follow the instructions of importing but I am unable to get the Projects & Dependencies to show up. Please see attached screenshot.

I also updated the build.gradle file as per another post but still no success. Can you please advise as to what I might be missing ?

Thanks.
 
Attachments
Screenshot 2022-03-08 152222.png
Screenshot 2022-03-08 152222.png (129 KiB) Viewed 376 times

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

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

Post by AndreyR » Wed Mar 09, 2022 8:28 am

Hi, please switch to the Problems tab (in your right bottom panel, it currently has Gradle Tasks tab open) and attach your screenshot.
You can also check your JDK and Gradle versions compatibility.

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Wed Mar 09, 2022 3:10 pm

Hello,

I had installed JDK 17 - so I removed it and installed JDK8 as mentioned in the documentation. javac command works - I had to set the environment variables manually.

But when I import the project I still get errors. I see the Java Home directory is Unknown in Import Preview - I tried to manually specify the path - still errors. 

Please see attached screenshots.

Thanks for your assistance.
Attachments
s1.png
s1.png (154.52 KiB) Viewed 361 times
2.png
2.png (66.29 KiB) Viewed 361 times

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

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

Post by AndreyR » Wed Mar 09, 2022 6:16 pm

Sorry for the inconvenience. I hope you have no other project in your Eclise workspace. If you have, please create a new workspace for Bookmap projects so no other current project is affected.
Please set Gradle Java home to JDK8 in the default settings (you have a screenshot of Gradle:Java home but I din't know if that is the project settings or default settings. Default settings is at Window > Preferences > Gradle).
Please remove the project from Eclipse AND remove the .gradle folder from the project. Reimport the project.
If you have already done that or/and it had no effect please let me know.

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Wed Mar 09, 2022 6:47 pm

I had a test project that I have removed.

The Java home for Gradle is set at Windows - Preferences- Gradle

I deleted the project, deleted the Gradle folder from the project - reimported and at Preview same exception. Also, I noticed where I have specified the Java Home for Gradle there is a "yellow triangle" - not sure if Gradle is still not able to find JDK that is causing this issue. Screenshot attached.

Thanks again for your assistance.
Attachments
4.png
4.png (64.64 KiB) Viewed 349 times
3.png
3.png (247.86 KiB) Viewed 349 times

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Wed Mar 09, 2022 7:05 pm

I changed the java home path to not include bin and then reimported the project.

This time the project imported - there are no problems in the bottom right tab but yet still there were no dependencies loaded in the project either. Please see attached screenshot.

Sorry to continuously bug you.
Attachments
5.png
5.png (86.57 KiB) Viewed 346 times

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

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

Post by AndreyR » Thu Mar 10, 2022 3:49 pm

struts12
what is your Eclipse version?

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Thu Mar 10, 2022 6:14 pm

Eclipse IDE for Java Developers (includes Incubating components)
Version: 2021-12 (4.22.0)
Build id: 20211202-1639
OS: Windows 11, v.10.0, x86_64 / win32
Java vendor: Eclipse Adoptium
Java runtime version: 17.0.2+8
Java version: 17.0.2


I did change the default JRE to use jre1.8_0 for jdk8 in Windows-Preferences-Java-Installed JREs

struts12
Posts: 6
Joined: Mon Mar 07, 2022 4:25 pm

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

Post by struts12 » Mon Mar 14, 2022 1:51 pm

Any updates please ?

Post Reply