Forums Register Login

How to compile a .drl file?

+Pie Number of slices to send: Send
How to compile a .drl file?

Is this the right way to be used in JDeveloper?

Am getting the following exception--
java.lang.NullPointerException

at java.io.Reader.<init>(Reader.java:61)

at java.io.InputStreamReader.<init>(InputStreamReader.java:55)

at demo.MyDrools.initRuleBase(MyDrools.java:13)

at demo.MyDrools.main(MyDrools.java:44)

Exception in thread main
Am i getting this because the drl file is not compiled.Am i missing any jar file? Can someone help me ?
+Pie Number of slices to send: Send
Please check very carefully that the file name is correctly spelt. The / at the beginning may cause the JVM to look in the wrong place. Failure to retrieve the URL will cause getResource() to return null, and that may cause the NullPointerException.
+Pie Number of slices to send: Send
Also note that this has nothing to do with any IDE you may happen to be using.
+Pie Number of slices to send: Send
Yes I have checked the file name, Its correct. But can you tell me how to compile the drl file? Nothing happens when I compile it even with errors
+Pie Number of slices to send: Send
I'm not familiar with Drools, but what do you expect to happen? I wouldn't think that compiling a rules file produces any visible output. Maybe the Drools API has some way of figuring out if there were compilation problems?

Moving to a more appropriate forum where Drools would be discussed.
+Pie Number of slices to send: Send
Thanks for your reply
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2785 times.
Similar Threads
fatal error : jni.h when runnin make/make-sheduler
Security Exception: signature file
java.lang.NoClassDefFoundError: org/kxml2/io/KXmlParser
Complile time OR Request time error
Including a jar file while compilation
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 16:50:28.