Are you launching the application from within eclipse?<div>Have you checked the classpath of the launch configuration? You can see it by right-clicking the .java file and then selecting &quot;run as --&gt; run configurations...&quot;</div>
<div>Does it show the commons jar?</div><div><br><br><div class="gmail_quote">2010/6/12 Fnu Mahalakshmi <span dir="ltr">&lt;<a href="mailto:FMahalakshmi@nyx.com">FMahalakshmi@nyx.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">









<div lang="EN-US" link="blue" vlink="purple">

<div>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi,</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I just tried everything I could think of but still getting
error.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Using following code for converting from .brl file to .drl
file:</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">File file = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> File(rulesFiles); </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            String brl = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">null</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">try</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">{</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  BRXMLPersistence read = (BRXMLPersistence)
BRXMLPersistence.<i><span style="font-style:italic">getInstance</span></i>();</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  BRDRLPersistence write = (BRDRLPersistence)
BRDRLPersistence.<i><span style="font-style:italic">getInstance</span></i>();</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  brl = FileUtils.<i><span style="font-style:italic">readFileToString</span></i>(file);
</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                System.</span></font><i><font size="2" color="#0000c0" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#0000C0;font-style:italic">out</span></font></i><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.println(</span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;File content: &quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> + brl); </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                String outputDRL =
write.marshal(read.unmarshal(brl));</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                String drlFilePath = </span></font><font size="2" color="#2a00ff" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#2A00FF">&quot;drlFile.drl&quot;</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">;</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                File drlFile = </span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> File(drlFilePath);</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                FileUtils.<i><span style="font-style:italic">writeStringToFile</span></i>(drlFile,
outputDRL);</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                addRulesToThisPackage.addPackageFromDrl(</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">new</span></font></b><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                         InputStreamReader(RuleRunner.</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">class</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">.getResourceAsStream(drlFilePath)));</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">            }</span></font><b><font size="2" color="#7f0055" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#7F0055;font-weight:bold">catch</span></font></b><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"> (IOException e) {</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">                  e.printStackTrace(); </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">             } </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I have added the org.apache.commons .jar files to the
classpath.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">It contains a FileUtils.java  file which I added to the
classpath.</span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Now the error I get when I run the program is :</span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">Exception in thread &quot;main&quot; java.lang.Error: Unresolved
compilation problem: </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      FileUtils cannot be resolved</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at com.org.RuleRunner.loadRuleFile(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">RuleRunner.java:70</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)// </span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at com.org.RuleRunner.loadRules(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">RuleRunner.java:45</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at com.org.RuleRunner.runStatelessRules(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">RuleRunner.java:102</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">      at com.org.RulesTest.main(</span></font><u><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:navy">RulesTest.java:40</span></font></u><font size="2" color="red" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:red">)</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"></span></font></p>


<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I don’t understand why still I am getting the error. </span></font></p>

<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">RuleRunner.java:70 is :</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;background:yellow"> brl</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black;background:blue"> = FileUtils.<i><span style="font-style:italic">readFileToString</span></i>(file);</span></font><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black"></span></font></p>


<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">Is there any
thing else I could use ?/ Could you give me a hint??</span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">Thank you</span></font></p>

<p class="MsoNormal"><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:black">M</span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"></span></font></p>


</div>

<pre></pre>

<p></p><hr size="1"><p></p>
<p><strong><font color="green">Please consider the environment before printing this email.</font></strong></p>
<p><strong>Visit our website at <a href="http://www.nyse.com" target="_blank">http://www.nyse.com</a> <br>

*****************************************************************************
<br>
Note:  The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure.  If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.  If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system.  Thank you.  NYSE Euronext.

</strong></p><pre></pre></div>


<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br></div>