Missing Jsoup jar

Mike Bray 's Avatar

Mike Bray

13 Jun, 2018 12:00 PM

Hi I have another question for Sean.

I am writing an extension that uses JSON and JSOUP. Both jars are in the jars directory for MD Windows but the jsoup-1.11.1.jar file is missing from my Mac implementation. I get a class not found on the Mac.

If I copy the jsoup jar from windows to OSx the extension works in the same way as Windows.

Is this by design or a mistake?

Both of my installations are 2017.7.1 (1671). My Windows machine is 8.1 and my Mac machine is Yosemite.

  1. Support Staff 1 Posted by Sean Reilly on 14 Jun, 2018 10:44 AM

    Sean Reilly's Avatar

    Hi Mike!
    Moneydance doesn't use the JSOUP library, so you'll need to bundle the classes within it into the .mxt file for your extension.

    If you're using ant, you can easily merge a .jar file into the mxt using something like the following:

        <jar destfile="${dist}/myextension.mxt" compress="false" >
          <fileset dir="${build}" includes="**" />
          <zipfileset src="${lib}/library1.jar" />
          <zipfileset src="${lib}/library2.jar" />
        </jar>
    

    Thanks!

    Sean Reilly
    Developer, The Infinite Kind
    http://infinitekind.com

  2. 2 Posted by Mike Bray on 14 Jun, 2018 11:50 AM

    Mike Bray 's Avatar

    Thanks Sean

    I must have copied the jar to the MD directory by mistake. I have done
    what you suggested and it works fine on both machines.

    Regards
    Mike

  3. Mike Bray closed this discussion on 14 Jun, 2018 01:54 PM.

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

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