tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2583-moneydanceclass-in-top-level-directory-unnamed-packageInfinite Kind: Discussion 2019-10-28T09:50:23Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/474751242019-07-27T19:06:57Z2019-07-27T19:06:57ZMoneydance.class in top-level directory (unnamed package)<div><p>Hi Carlos,<br>
Great question! The top level Moneydance class actually shouldn't be used<br>
and is just a shortcut which invokes the<br>
com.infinitekind.apps.md.controller.Main class. If you use that<br>
package+class it should start Moneydance.</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/474751242019-07-28T09:32:48Z2019-07-28T09:32:50ZMoneydance.class in top-level directory (unnamed package)<div><p>Hi Sean,</p>
<p>Thanks for the prompt reply! I was referencing the Moneydance Main class in the Run/Debug configurations of Eclipse, as per the references I found (e.g.: <a href="https://infinitekind.tenderapp.com/discussions/moneydance-development/824-debugging-moneydance-extensions-in-eclipse">https://infinitekind.tenderapp.com/discussions/moneydance-developme...</a>). I tried your suggestion above, but got the same result: Eclipse complains about the Moneydance Main class in the default package, even using com.moneydance.apps.md.controller.Main.</p>
<p>However, It occurred to me to try it on Intelli J IDEA and guess what? It works both ways! Apparentely, Eclipse is more strict with the structure of the project.</p>
<p>On the other hand, in spite of the fact that Moneydance actually launched on Intelli J, it starts in demo mode, with no extensions installed, as if it was the first time I was opening it. Any thoughts on that?</p>
<p>Thanks,<br>
Carlos</p></div>Carlos Silveiratag:infinitekind.tenderapp.com,2009-01-14:Comment/474751242019-07-28T22:06:16Z2019-07-28T22:06:16ZMoneydance.class in top-level directory (unnamed package)<div><p>Hmm... maybe Eclipse requires all classes to be in modules and we just haven't started using them in Moneydance yet.</p>
<p>As for the app showing up in demo mode and with no extensions when run from IDEA, that would happen when run from a mac, because our shipping version of Moneydance is packaged as a sandboxed app which stores its documents, preferences, and extensions in a different location. If you're also on a mac then the folder used for documents, preferences, and extensions will be under ~/Library/Application Support/Moneydance/</p>
<p>Thanks,<br>
Sean</p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/474751242019-07-29T09:46:20Z2019-07-29T09:46:20ZMoneydance.class in top-level directory (unnamed package)<div><p>Yes, maybe Eclipse requires that. I will stick to Intelli J, it is working just fine.</p>
<p>Thanks for the explanation about the way Moneydance works on a mac. It solved the demo mode issue. Now I can start working on the extension I need :).</p>
<p>Thanks and best regards,<br>
Carlos</p></div>Carlos Silveira