|
List Info
Thread: Need Help: Errors while running FibonacciExample
|
|
| Need Help: Errors while running
FibonacciExample |

|
2007-02-19 04:27:19 |
Hi,
After successfully compiling the example code
FibnacciExample.java, I
tried to run it, I get the following error, let me know how
to solve it:
java FibonacciExample
Exception in thread "main"
java.lang.ExceptionInInitializerError
at java.lang.Class.initializeClass()
(/usr/lib/libgcj.so.6.0.0)
at org.drools.semantics.java.RuleBuilder.<clinit>()
(Unknown Source)
at java.lang.Class.initializeClass()
(/usr/lib/libgcj.so.6.0.0)
at
org.drools.compiler.PackageBuilder.addRule(org.drools.lang.d
escr.RuleDescr) (Unknown Source)
at
org.drools.compiler.PackageBuilder.addPackage(org.drools.lan
g.descr.PackageDescr) (Unknown Source)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(java.io
.Reader)
(Unknown Source)
at FibonacciExample.main(java.lang.String[]) (Unknown
Source)
at gnu.java.lang.MainThread.call_main()
(/usr/lib/libgcj.so.6.0.0)
at gnu.java.lang.MainThread.run()
(/usr/lib/libgcj.so.6.0.0)
Caused by: java.util.regex.PatternSyntaxException: At
position 2 in
regular expression pattern:
expected end of character class
(.*)bmodifys*(([^)]+))(.*)
^
at java.util.regex.Pattern.Pattern(java.lang.String,
int)
(/usr/lib/libgcj.so.6.0.0)
at java.util.regex.Pattern.compile(java.lang.String,
int)
(/usr/lib/libgcj.so.6.0.0)
at
org.drools.semantics.java.KnowledgeHelperFixer.<clinit>
;() (Unknown
Source) at java.lang.Class.initializeClass()
(/usr/lib/libgcj.so.6.0.0)
...8 more
Is it require to place .drl file in the same directory as
that of the
source code ?
Thanks,
Venkatesh
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.
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.
www.wipro.com
_______________________________________________
rules-users mailing list
rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
|
| Re: Need Help: Errors while running
FibonacciExample |

|
2007-02-19 07:24:32 |
|
Hi Venkatesh,
On 2/19/07, venkatesh devalapura nagabhushana < venkatesh.nag wipro.com">venkatesh.nag wipro.com> wrote:
Hi,
After successfully compiling the example code FibnacciExample.java, I tried to run it, I get the following error, let me know how to solve it:
java FibonacciExample Exception in thread "main"
java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) at org.drools.semantics.java.RuleBuilder.<clinit>() (Unknown Source) at java.lang.Class.initializeClass
() (/usr/lib/libgcj.so.6.0.0) at org.drools.compiler.PackageBuilder.addRule(org.drools.lang.descr.RuleDescr) (Unknown Source) at org.drools.compiler.PackageBuilder.addPackage(org.drools.lang.descr.PackageDescr
) (Unknown Source) at org.drools.compiler.PackageBuilder.addPackageFromDrl(java.io.Reader) (Unknown Source) at FibonacciExample.main(java.lang.String[]) (Unknown Source) at gnu.java.lang.MainThread.call_main
() (/usr/lib/libgcj.so.6.0.0) at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) Caused by: java.util.regex.PatternSyntaxException: At position 2 in regular expression pattern: expected end of character class
(.*)bmodifys*(([^)]+))(.*) ^ at java.util.regex.Pattern.Pattern(java.lang.String, int) (/usr/lib/libgcj.so.6.0.0) at java.util.regex.Pattern.compile(java.lang.String, int) (/usr/lib/libgcj.so.6.0.0)
at org.drools.semantics.java.KnowledgeHelperFixer.<clinit>() (Unknown Source) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) ...8 more
Is it require to place .drl file in the same directory as that of the
source code ?
Thanks, Venkatesh
What JDK are you using? "/usr/lib/libgcj.so.6.0.0" and "gnu.java.lang" makes me think that it's GNU Classpath or something like that. It is quite possible that there are incompatibilities with that runtime.
Have you tried running it with Sun's JDK?
Best regards Marcus
|
| Re: Need Help: Errors while running
FibonacciExample |

|
2007-02-19 21:08:42 |
Hi Marcus,
Thanks for the response, I have not tried with Sun JDK, let
me try it
out and keep you posted.
Thanks,
Venkatesh
On Mon, 2007-02-19 at 14:24 +0100, Marcus Ilgner wrote:
> Hi Venkatesh,
>
> On 2/19/07, venkatesh devalapura nagabhushana
> <venkatesh.nag wipro.com> wrote:
>
> Hi,
>
> After successfully compiling the example code
> FibnacciExample.java, I
> tried to run it, I get the following error, let
me know how to
> solve it:
>
> java FibonacciExample
> Exception in thread "main"
> java.lang.ExceptionInInitializerError
> at java.lang.Class.initializeClass()
> (/usr/lib/libgcj.so.6.0.0)
> at
org.drools.semantics.java.RuleBuilder.<clinit>()
> (Unknown Source)
> at java.lang.Class.initializeClass ()
> (/usr/lib/libgcj.so.6.0.0)
> at
>
org.drools.compiler.PackageBuilder.addRule(org.drools.lang.d
escr.RuleDescr) (Unknown Source)
> at
>
org.drools.compiler.PackageBuilder.addPackage(org.drools.lan
g.descr.PackageDescr ) (Unknown Source)
> at
>
org.drools.compiler.PackageBuilder.addPackageFromDrl(java.io
.Reader)
> (Unknown Source)
> at FibonacciExample.main(java.lang.String[])
(Unknown
> Source)
> at gnu.java.lang.MainThread.call_main ()
> (/usr/lib/libgcj.so.6.0.0)
> at gnu.java.lang.MainThread.run()
> (/usr/lib/libgcj.so.6.0.0)
> Caused by:
java.util.regex.PatternSyntaxException: At position
> 2 in
> regular expression pattern:
> expected end of character class
> (.*)bmodifys*(([^)]+))(.*)
> ^
> at
java.util.regex.Pattern.Pattern(java.lang.String, int)
> (/usr/lib/libgcj.so.6.0.0)
> at
java.util.regex.Pattern.compile(java.lang.String, int)
> (/usr/lib/libgcj.so.6.0.0)
> at
>
org.drools.semantics.java.KnowledgeHelperFixer.<clinit>
;()
> (Unknown
> Source) at java.lang.Class.initializeClass()
> (/usr/lib/libgcj.so.6.0.0)
> ...8 more
>
> Is it require to place .drl file in the same
directory as that
> of the
> source code ?
>
> Thanks,
> Venkatesh
>
>
> What JDK are you using?
"/usr/lib/libgcj.so.6.0.0" and
"gnu.java.lang"
> makes me think that it's GNU Classpath or something
like that. It is
> quite possible that there are incompatibilities with
that runtime.
> Have you tried running it with Sun's JDK?
>
> Best regards
> Marcus
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
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.
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.
www.wipro.com
_______________________________________________
rules-users mailing list
rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
|
| Re: Need Help: Errors while running
FibonacciExample |

|
2007-02-19 22:18:37 |
|
Hi, your not using Sun JDK. Type 'which java' the prompt. This will show you where your java command lies. This should be taken from your JAVA_HOME.
Simply set JAVA_HOME variable & append $JAVA_HOMEbin to the beginning of your path variable.
/sumedha
On 2/19/07, venkatesh devalapura nagabhushana < venkatesh.nag wipro.com">venkatesh.nag wipro.com> wrote:
Hi,
After successfully compiling the example code FibnacciExample.java, I
tried to run it, I get the following error, let me know how to solve it:
java FibonacciExample Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0)
at org.drools.semantics.java.RuleBuilder.<clinit>() (Unknown Source) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) at org.drools.compiler.PackageBuilder.addRule(org.drools.lang.descr.RuleDescr
) (Unknown Source) at org.drools.compiler.PackageBuilder.addPackage(org.drools.lang.descr.PackageDescr) (Unknown Source) at org.drools.compiler.PackageBuilder.addPackageFromDrl(java.io.Reader) (Unknown Source)
at FibonacciExample.main(java.lang.String[]) (Unknown Source) at gnu.java.lang.MainThread.call_main() (/usr/lib/libgcj.so.6.0.0) at gnu.java.lang.MainThread.run() (/usr/lib/libgcj.so.6.0.0) Caused by:
java.util.regex.PatternSyntaxException: At position 2 in regular expression pattern: expected end of character class (.*)bmodifys*(([^)]+))(.*) ^ at java.util.regex.Pattern.Pattern(
java.lang.String, int) (/usr/lib/libgcj.so.6.0.0) at java.util.regex.Pattern.compile(java.lang.String, int) (/usr/lib/libgcj.so.6.0.0) at org.drools.semantics.java.KnowledgeHelperFixer.<clinit>() (Unknown
Source) at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.6.0.0) ...8 more
Is it require to place .drl file in the same directory as that of the source code ?
Thanks, Venkatesh
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.
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.
www.wipro.com _______________________________________________ rules-users mailing list rules-users lists.jboss.org">rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
| Re: Need Help: Errors while running
FibonacciExample |

|
2007-02-20 00:34:39 |
Hi,
I shifted to Sun JDK. Now, I am seeing a new problem while
trying to run
FibonacciExample:
java org.drools.examples.FibonacciExample
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/eclipse/jdt/internal/compiler/env/INameEnvironment
at
org.drools.compiler.PackageBuilder.loadCompiler(Unknown
Source)
at
org.drools.compiler.PackageBuilder.<init>(Unknown
Source)
at
org.drools.compiler.PackageBuilder.<init>(Unknown
Source)
at
org.drools.examples.FibonacciExample.main(FibonacciExample.j
ava:18)
Could any one please let me know how to solve this problem
?
Thanks,
Venkatesh
>> Snip earlier e-mail >>
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.
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.
www.wipro.com
_______________________________________________
rules-users mailing list
rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
|
| Re: Need Help: Errors while running
FibonacciExample |

|
2007-02-20 01:52:37 |
|
Hi, You do not have jdt.jar in your class path. It comes with the dependency list. If you cannot find it, you can download it from here
http://repo1.maven.org/maven2/org/eclipse/jdt/core/3.2.0.666/core-3.2.0.666.jar
But I recommend you using the one that is coming with the dependency list.
/sumedha
On 2/20/07, venkatesh devalapura nagabhushana < venkatesh.nag wipro.com">venkatesh.nag wipro.com> wrote:
Hi,
I shifted to Sun JDK. Now, I am seeing a new problem while trying to run FibonacciExample:
java org.drools.examples.FibonacciExample Exception in thread "main" java.lang.NoClassDefFoundError
: org/eclipse/jdt/internal/compiler/env/INameEnvironment at org.drools.compiler.PackageBuilder.loadCompiler(Unknown Source) at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source) at org.drools.examples.FibonacciExample.main(FibonacciExample.java:18)
Could any one please let me know how to solve this problem ?
Thanks, Venkatesh
>> Snip earlier e-mail >>
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.
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.
www.wipro.com _______________________________________________ rules-users mailing list rules-users lists.jboss.org">rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
| dependencies |
  United States |
2007-06-22 10:38:24 |
hi,
pls where can I see dependencies ?
Thanks
sumedha rubasinghe-2 wrote:
>
> Hi,
> You do not have jdt.jar in your class path. It comes
with the dependency
> list. If you cannot find it, you can download it from
here
> http://repo1.maven.org/maven2/org
/eclipse/jdt/core/3.2.0.666/core-3.2.0.666.jar
>
> But I recommend you using the one that is coming with
the dependency list.
>
> /sumedha
>
>
> On 2/20/07, venkatesh devalapura nagabhushana
<venkatesh.nag wipro.com>
> wrote:
>>
>>
>> Hi,
>>
>> I shifted to Sun JDK. Now, I am seeing a new
problem while trying to run
>> FibonacciExample:
>>
>> java org.drools.examples.FibonacciExample
>> Exception in thread "main"
java.lang.NoClassDefFoundError:
>>
org/eclipse/jdt/internal/compiler/env/INameEnvironment
>> at
org.drools.compiler.PackageBuilder.loadCompiler(Unknown
>> Source)
>> at
org.drools.compiler.PackageBuilder.<init>(Unknown
Source)
>> at
org.drools.compiler.PackageBuilder.<init>(Unknown
Source)
>> at
>>
org.drools.examples.FibonacciExample.main(FibonacciExample.j
ava:18)
>>
>> Could any one please let me know how to solve this
problem ?
>>
>> Thanks,
>> Venkatesh
>>
>>
>> >> Snip earlier e-mail >>
>>
>>
>>
>> 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.
>>
>> 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.
>>
>> www.wipro.com
>> _______________________________________________
>> rules-users mailing list
>> rules-users lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
> _______________________________________________
> rules-users mailing list
> rules-users lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
View this message in context: http://www.nabb
le.com/Need-Help%3A-Errors-while-running-FibonacciExample-tf
3252054.html#a11254601
Sent from the drools - user mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
|
|
[1-7]
|
|