sir,<br>&nbsp;&nbsp;&nbsp;&nbsp; if you want to take any .drl file as an input of your JAVA program then you can try this code,<br><br><span style="font-weight: bold;">final Reader source = new InputStreamReader( ClassExample.class.getResourceAsStream( "Class.drl" ) );</span><br style="font-weight: bold;"><br>here ClassExample is corresponding JAVA program of your&nbsp; Class.drl&nbsp; file and ClassExample is your main class which contain main <br><br>with regards,<br>Niloy Debnath<br><br><b><i>fakhfakh ismail &lt;ismail_info2005@yahoo.fr&gt;</i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Hello,<br>First sorry for my bad english,<br><br>I set all the class .java is in package hero.client.test<br>and the file .drl is in folser Drl<br>the call of file .drl <br><span style="color: rgb(0, 127, 64);">InputStream in = DroolsTest.class.getResourceAsStream("Drl/Sample.drl");</span><br><br>but the
 problem is they didn't find the file .drl <br>always an exception is affiched<br><br><span style="color: rgb(255, 0, 0);">Exception in thread "main" java.lang.NullPointerException</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; at java.io.Reader.&lt;init&gt;(Reader.java:61)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; at java.io.InputStreamReader.&lt;init&gt;(InputStreamReader.java:55)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; at  org.drools.jsr94.rules.admin.LocalRuleExecutionSetProviderImpl.createRuleExecutionSet(Unknown Source)</span><br style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">&nbsp;&nbsp;&nbsp; at hero.client.test.DroolsTest.main(DroolsTest.java:34)</span><br>Please I need your help<br>Best regards<br>Ismail<br><div>                  </div><hr size="1">  Découvrez une nouvelle façon
 d'obtenir des réponses à toutes vos questions !  Profitez des connaissances, des opinions et des expériences des internautes sur <a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">Yahoo! Questions/Réponses</a>._______________________________________________<br>rules-users mailing list<br>rules-users@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/rules-users<br></blockquote><br><p>&#32;


      <hr size=1></hr> 
Check out what you're missing if you're not on <a href="http://us.rd.yahoo.com/mail/in/ymessenger/*http://in.messenger.yahoo.com/">Yahoo! Messenger</a>