How to connect my Java Program with LibreOffice Base

Hello everyone

I’m pretty new to programming and I’m currently working on a family tree program. Im using LibreOffice base so I can save all the data on my PC and not online. I’m using java for my UI. Howevery I’m struggling to access the db from my java program.

Any help will be greatly appreciated.

Edit: Since not many have done this and I’m cerntainly not the first to do it, I decided to import the LibreOffice Base into the LibreOffice Calc and save it as csv. I’m now working with the csv-files as input to my program, which works great since it’s only so little data.

I would recommend using the software called GRAMPS. Download from gramps-project.org. Install locally on your PC, no online storage. No sense in re-inventing the wheel. It works well for me.

Hello,

There are not a lot of examples for LO using Java and less with Base.

The AOO wiki has probably the most in the way of samples. You can also download the entire document.

See → Database Access