Intellij: writing/debugging extensions in Java

mark's Avatar

mark

12 Apr, 2025 05:02 PM

Full disclosure: I have never programmed in Java before, although I have a couple of decades experience writing in C# and JavaScript.

I'm playing around with trying to write MD extensions in Java using JetBrains Intellij. Well, actually, I'm starting with the example myextension code that comes with the MD development kit :).

I think I've got my project configured correctly. At least, I've made all the syntactical errors disappear :). But I can't run or debug the code.

That's not surprising given that an MD extension is intended to run within the context of MD.

But I've seen references here in old discussions about being able to run and debug extension code (including specifically within Intellij).

Is there a link to an online guide or tutorial somewhere?

  • Mark
  1. 1 Posted by Stuart Beesley ... on 12 Apr, 2025 06:27 PM

    Stuart Beesley (Mr Toolbox)'s Avatar

    The short version is that you need to launch MD from within IJ by creating a debug/run config that launches the moneydance.jar (use the live jar file from your installation, not the dev kit) file (also with the -d) parameter. You will also need to tell the run config to load the supplementary jars too.

    @mikebray might jump in here as I believe he does this…

  2. 2 Posted by Mike Bray (Quot... on 13 Apr, 2025 12:15 PM

    Mike Bray (Quote Loader Author)'s Avatar

    Hi mark, have a look at the enclosed, have a look at the Modify classpath parameter. You need to add in the moneydance.jar of the version of MD you are using.

  3. 3 Posted by mark on 15 Apr, 2025 08:43 PM

    mark's Avatar

    Thanx for the quick feedback (and I hope I've finally convinced Outlook to stop putting messages from this forum in the junk folder, which I don't tend to check regularly :().

    I'll try out the suggestions...and I'm sure I'll be back :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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

19 Apr, 2025 11:09 PM
19 Apr, 2025 09:46 PM
19 Apr, 2025 09:36 PM
19 Apr, 2025 09:26 PM
19 Apr, 2025 09:22 PM