Here&#39;s what I got working and when it failed .... it was just the basic &#39;hello world&#39; kind of stuff:<br><br>Worked:<br>final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();<br><br>Died: <br>
// this will parse and compile in one step<br>kbuilder.add(ResourceFactory.newClassPathResource(&quot;HelloWorld.drl&quot;, DroolsTest.class), ResourceType.DRL);<br><br>LogCat:<br>01-02 13:13:17.684: E/AndroidRuntime(537): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.versaggi.android.droolsandroidtest/com.versaggi.android.droolsandroidtest.DroolsAndroidTestActivity}: java.lang.NullPointerException<br>
<br>That&#39;s about as far as I could get. <br><br>I think this DOC will probably help out ....<br><a href="https://github.com/cgreenhalgh/droolstest/blob/8ea1a06d9b1b38a40b1add7f988ebbf9f4ff3e88/docs/drools-on-android.html..">https://github.com/cgreenhalgh/droolstest/blob/8ea1a06d9b1b38a40b1add7f988ebbf9f4ff3e88/docs/drools-on-android.html..</a>..<br>
<br>I had to re-compile the CompositeClassLoader.java file and then reinsert it into the drools-api-5.1.0.M2.jar file to get past this issue:<br><br>&quot;A small modification is needed in <span style="font-style:italic">org.drools.util.CompositeClassLoader</span>.  Apparently, the Android JVM doesn&#39;t allow <span style="font-style:italic">null</span> as the parent classloader so I changed that to <span style="font-style:italic">super(CompositeClassLoader.class.getClassLoader())</span> in the constructor, and that works fine.&quot;<br>
<br>However I think that his other modifications aren&#39;t completely integrated into the drools-compiler-5.1.0.M2.jar or the drools-core jar files he provides just yet. <br><br>*********************************<br><br><br>
<div class="gmail_quote">On Mon, Jan 2, 2012 at 2:11 PM, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On 2 January 2012 13:58, profversaggi <span dir="ltr">&lt;<a href="mailto:profversaggi@gmail.com" target="_blank">profversaggi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

I&#39;ve run across the work of a very bright man in the UK who did it as part of<br>
an integrated systems he was working on ... and I got his code working up to<br>
the point where it died loading the DRL rules.<br></blockquote></div><div><br>His rules? Your rules? Did you try the simple &quot;Hello World&quot; rule?<br><br>rule HW<br>when<br>then<br>    System.out.println( &quot;Hello world&quot; );<br>

end<span class="HOEnZb"><font color="#888888"><br><br>-W <br><br></font></span></div><div class="im"><blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">

<br>
I think this might shed some light on things but it&#39;s fast getting into true<br>
software engineering and I&#39;m just not there yet ....<br>
<br>
Here is his codebase:<br>
<a href="https://github.com/cgreenhalgh/droolstest" target="_blank">https://github.com/cgreenhalgh/droolstest</a><br>
<span><font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Drools-on-android-tp723184p3626516.html" target="_blank">http://drools.46999.n3.nabble.com/Drools-on-android-tp723184p3626516.html</a><br>
Sent from the Drools: Developer (committer) mailing list mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></span></blockquote></div></div><br>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>