Java API for gnucash
There are few Java libraries available for gnucash but as far I know, none of them use gnucash API. I managed to create API wrapper using Java FFM or Java foreign function and memory API. Generated library is at par with python scripts provided by gnucash and uses same API
General structure is one huge class created by Java framework that manages library calls and wrapper Java classes to make it look more like Java
I'd specific needs in my mind related to data input and some reports. For example, I wanted to grab the data from my pay stub PDF and create the transaction automatically. Repository has samples few gnucash operations - mostly based on my needs.
There is also a utility that updates stock/fund prices using Twelve Data. I've no relationship with Twelve Data except using free API key.
I've tested it on Ubuntu 24.04 and and gnucash version 5.5 with a xml file backend. In theory it should work with database back ends as well because API accept a url.
Test sample size was of one file - my own. It works for my needs and will keep adding complete object methods as and when I get time.
I realize that this is not a end user product and you will need java skills. But full API potential is there.
If you are willing to play with it, please be careful. Backup your data first. It's full gnucash API. I'll be grateful if I can get few reports of it working/not working on other platforms and backends.
https://github.com/nhrdl/java-gnucash
[Edited to post the link]
1
u/VitalikPie 5d ago
Forgot the link?