<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to patches</title><link href="https://sourceforge.net/p/djproject/patches/" rel="alternate"/><link href="https://sourceforge.net/p/djproject/patches/feed.atom" rel="self"/><id>https://sourceforge.net/p/djproject/patches/</id><updated>2013-04-27T11:46:23.312000Z</updated><subtitle>Recent changes to patches</subtitle><entry><title>#4 Ability for third party to instantiate Native process</title><link href="https://sourceforge.net/p/djproject/patches/4/?limit=25#4c84" rel="alternate"/><published>2013-04-27T11:46:23.312000Z</published><updated>2013-04-27T11:46:23.312000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net11ab67fa3c05507c74891ddcd38729a977715a1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Your workaround makes sense perfect sense, and I am glad you found a solution.&lt;/p&gt;
&lt;p&gt;Thanks a lot for sharing this information!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4 Ability for third party to instantiate Native process</title><link href="https://sourceforge.net/p/djproject/patches/4/?limit=25#b723" rel="alternate"/><published>2013-04-23T07:53:03.063000Z</published><updated>2013-04-23T07:53:03.063000Z</updated><author><name>Albmik</name><uri>https://sourceforge.net/u/albmik/</uri></author><id>https://sourceforge.netc6bdb8736ee43dc7af2e3a5c360415f8cce28b2a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Exelsior JET uses a custom java runtime, but I am not so sure about the “magic” behind Excelsior JET. Mainly because of the NoClassDefFoundError exception I think it could be a path problem since some of the paths contain spaces. I tried many different ways to add quotes to the paths, but still didn’t get it to work. &lt;/p&gt;
&lt;p&gt;I did however find a way around the spawning problem. In the compilation process it is possible to enable the “Multi-app executable”-feature. This feature creates an executable that can have multiple entry points and you can specify the desired main class to run using arguments. So from my implementation of PeerVMProcessFactory I simply execute my exe-file a second time with arguments matching the NativeInterface main class:&lt;br /&gt;
&lt;strong&gt;Runtime.getRuntime().exec(“test.exe chrriis.dj.nativeswing.swtimpl.NativeInterface 1 60851”);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I guess this way Excelsior JET calls the main class with the appropriate paths. It’s probably not the most elegant solution, but it works without the inProcess setting which is my primary concern. A drawback is the fact that the name of the exe-file is hardcoded in my code, but I can live with that for now. Everything seems to work right now, but I will continue testing just to make sure and hope I don't find any further drawbacks.&lt;/p&gt;
&lt;p&gt;I hope this information helps if anyone else is experiencing similar problems with instantiating the native process using Excelsior JET.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4 Ability for third party to instantiate Native process</title><link href="https://sourceforge.net/p/djproject/patches/4/?limit=25#9335" rel="alternate"/><published>2013-04-19T15:42:21.923000Z</published><updated>2013-04-19T15:42:21.923000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net1e00ba8f77e9a4b619a803a225268414788c2294</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To spawn the VM, I need to use the same version of Java. When the process is turned to an exe using Excelsior JET, I am not sure how one would start the VM with a different main class. Where is the VM and where are the runtime libraries when using Excelsior JET?&lt;/p&gt;
&lt;p&gt;An alternative would be to ship the JRE and provide an exe for your JAR files (like WinRun4J).&lt;/p&gt;
&lt;p&gt;-Christopher&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>#4 Ability for third party to instantiate Native process</title><link href="https://sourceforge.net/p/djproject/patches/4/?limit=25#e1ef" rel="alternate"/><published>2013-04-15T11:51:09.264000Z</published><updated>2013-04-15T11:51:09.264000Z</updated><author><name>Albmik</name><uri>https://sourceforge.net/u/albmik/</uri></author><id>https://sourceforge.net99d7ae9bdc3f66f1cbcd63f10ecb4368d40b18db</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello and thanks for a great library!&lt;/p&gt;
&lt;p&gt;I realize that there’s been no activity here for a while, but I’ll post anyway and hope you can help me.&lt;/p&gt;
&lt;p&gt;As mentioned above the external process created via the command “java“ does not work when compiling to binary using Excelsior JET. On my machine it seems like the VM on the native side is never spawned and I get a "Failed to connect to spawned VM!" exception. But before that three identical exceptions are thrown when trying to create the external process: “Exception in thread "main" java.lang.NoClassDefFoundError: Files/Common”. Maybe just a path problem?&lt;/p&gt;
&lt;p&gt;It does however work perfectly if I set the property nativeswing.interface.inProcess=true. I guess this is because using this setting a second VM is never spawned. But using this setting for purposes other than debugging are as far as I can tell discouraged since the native side can crash the entire program at any moment.&lt;/p&gt;
&lt;p&gt;I have created a class that implements PeerVMProcessFactory that gets called to spawn the second VM. But have so far been unable to create the external process in a way that Excelsior Jet will accept. &lt;/p&gt;
&lt;p&gt;Any feedback or suggestions are greatly appreciated!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title/><link href="https://sourceforge.net/p/djproject/patches/4/" rel="alternate"/><published>2012-09-23T20:16:43.304000Z</published><updated>2012-09-23T20:16:43.304000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net80cdb524ec0b8379d5e85bcc61dcc924268f89f2</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/djproject/patches/3/" rel="alternate"/><published>2012-09-23T20:16:43.197000Z</published><updated>2012-09-23T20:16:43.197000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net0fb4af961798439a557d10e346ae9ac51285a052</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/djproject/patches/2/" rel="alternate"/><published>2012-09-23T20:16:37.888000Z</published><updated>2012-09-23T20:16:37.888000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net38ad2a64a470d12d2c2277a4aa49790a32282f41</id><summary type="html"/></entry><entry><title/><link href="https://sourceforge.net/p/djproject/patches/1/" rel="alternate"/><published>2012-09-23T20:16:32.721000Z</published><updated>2012-09-23T20:16:32.721000Z</updated><author><name>Christopher Deckers</name><uri>https://sourceforge.net/u/chrriis/</uri></author><id>https://sourceforge.net4d565f49d547a346acc76433ef2dc7be80e44842</id><summary type="html"/></entry></feed>