Hi,<br>your not using Sun JDK. <br>Type &#39;which java&#39; @ the prompt. This will show you where your java command lies. This should be taken from your JAVA_HOME.<br><br>Simply set JAVA_HOME variable &amp; append $JAVA_HOME\bin to the beginning of your path variable.
<br><br>/sumedha<br><br><br><br><div><span class="gmail_quote">On 2/19/07, <b class="gmail_sendername">venkatesh devalapura nagabhushana</b> &lt;<a href="mailto:venkatesh.nag@wipro.com">venkatesh.nag@wipro.com</a>&gt; wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>Hi,<br><br>After successfully compiling the example code FibnacciExample.java, I<br>
tried to run it, I get the following error, let me know how to solve it:<br><br>java FibonacciExample<br>Exception in thread &quot;main&quot; java.lang.ExceptionInInitializerError<br>&nbsp;&nbsp; at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
<br>&nbsp;&nbsp; at org.drools.semantics.java.RuleBuilder.&lt;clinit&gt;() (Unknown Source)<br>&nbsp;&nbsp; at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)<br>&nbsp;&nbsp; at<br>org.drools.compiler.PackageBuilder.addRule(org.drools.lang.descr.RuleDescr
) (Unknown Source)<br>&nbsp;&nbsp; at<br>org.drools.compiler.PackageBuilder.addPackage(org.drools.lang.descr.PackageDescr) (Unknown Source)<br>&nbsp;&nbsp; at<br>org.drools.compiler.PackageBuilder.addPackageFromDrl(java.io.Reader)<br>(Unknown Source)
<br>&nbsp;&nbsp; at FibonacciExample.main(java.lang.String[]) (Unknown Source)<br>&nbsp;&nbsp; at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0)<br>&nbsp;&nbsp; at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0)<br>Caused by: 
java.util.regex.PatternSyntaxException: At position 2 in<br>regular expression pattern:<br>expected end of character class<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(.*)\bmodify\s*\(([^)]+)\)(.*)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^<br>&nbsp;&nbsp; at java.util.regex.Pattern.Pattern(
java.lang.String, int)<br>(/usr/lib/libgcj.so.6.0.0)<br>&nbsp;&nbsp; at java.util.regex.Pattern.compile(java.lang.String, int)<br>(/usr/lib/libgcj.so.6.0.0)<br>&nbsp;&nbsp; at org.drools.semantics.java.KnowledgeHelperFixer.&lt;clinit&gt;() (Unknown
<br>Source)&nbsp;&nbsp; at java.lang.Class.initializeClass()<br>(/usr/lib/libgcj.so.6.0.0)<br>&nbsp;&nbsp; ...8 more<br><br>Is it require to place .drl file in the same directory as that of the<br>source code ?<br><br>Thanks,<br>Venkatesh<br>
<br><br><br>The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
<br><br>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
<br><br><a href="http://www.wipro.com">www.wipro.com</a><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">
https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br>