It's not a secret anymore!*
The moose likes Other Open Source Projects and the fly likes How to compile a .drl file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to compile a .drl file?" Watch "How to compile a .drl file?" New topic
Author

How to compile a .drl file?

Arc Sa
Greenhorn

Joined: Apr 08, 2009
Posts: 8
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 ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37979
    
  22
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.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41102
    
  45
Also note that this has nothing to do with any IDE you may happen to be using.


Ping & DNS - my free Android networking tools app
Arc Sa
Greenhorn

Joined: Apr 08, 2009
Posts: 8
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
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41102
    
  45
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.
Arc Sa
Greenhorn

Joined: Apr 08, 2009
Posts: 8
Thanks for your reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to compile a .drl file?
 
Similar Threads
Security Exception: signature file
fatal error : jni.h when runnin make/make-sheduler
Complile time OR Request time error
java.lang.NoClassDefFoundError: org/kxml2/io/KXmlParser
Including a jar file while compilation