Access to MD data from Java app without opening MD UI

Bob B's Avatar

Bob B

08 Jan, 2023 04:45 PM

I've seen a number of discussions about accessing MD data from python without opening the MD app. Is is also possible to do the same thing from a Java app? If is is possible, I'd appreciate a hint or two that I can research. Thanks

  1. 1 Posted by Stuart Beesley ... on 08 Jan, 2023 06:09 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    Yes. But it’s not a supported ‘thing’ to do and results can vary between MD versions depending on whether the GUI loads too. So it kind of depends on exactly what you want to do.

    Refer to the below for Jython.

    Scroll down to method 1

    Method 1: Using Jython (for true Java integration) (with a launch script to set up the JVM properly) - See folder contents:

    external-access-jython: Folder containing Jython launch script, and Jython examples accessing Moneydance externally….

    Thus, you can do the same from within a pure Java app.

    Now. Read only should be fine. If you want to do updates, it will be more tricky. You’ll have to shout if you want to do that.

    Question, ask?

  2. 2 Posted by dalefurrow (Fel... on 08 Jan, 2023 06:47 PM

    dalefurrow (Fellow User)'s Avatar

    Another example can be found here of headless access from a pure java app, it's the regression test for the Investment Reports extension, (runs investment reports, compares to saved output to ensure consistency in the development process).

  3. 3 Posted by Bob B on 10 Jan, 2023 05:22 PM

    Bob B's Avatar

    Thanks very much all. I only need to read-only so I should be OK.

  4. 4 Posted by Bob B on 10 Jan, 2023 10:14 PM

    Bob B's Avatar

    Just to let you know that I was successful following the model that Dale provided since my file does not have a user password. Looks easy when you know how :)

    Thanks again.

  5. System closed this discussion on 11 Apr, 2023 10:20 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

15 Apr, 2024 04:14 PM
15 Apr, 2024 03:34 PM
15 Apr, 2024 03:24 PM
15 Apr, 2024 12:32 PM
15 Apr, 2024 12:20 PM