Page 3 of 4

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

Posted: Sun Jan 23, 2022 9:39 pm
by birdienumnum68cr
Screenshot from 2022-01-24 08-33-26.png
Screenshot from 2022-01-24 08-33-26.png (511.87 KiB) Viewed 13166 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).

 

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

Posted: Tue Mar 08, 2022 8:23 pm
by struts12
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.
 

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

Posted: Wed Mar 09, 2022 8:28 am
by Andry API support
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.

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

Posted: Wed Mar 09, 2022 3:10 pm
by struts12
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.

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

Posted: Wed Mar 09, 2022 6:16 pm
by Andry API support
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.

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

Posted: Wed Mar 09, 2022 6:47 pm
by struts12
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.

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

Posted: Wed Mar 09, 2022 7:05 pm
by struts12
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.

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

Posted: Thu Mar 10, 2022 3:49 pm
by Andry API support
struts12
what is your Eclipse version?

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

Posted: Thu Mar 10, 2022 6:14 pm
by struts12
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

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

Posted: Mon Mar 14, 2022 1:51 pm
by struts12
Any updates please ?