This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
Also note that this has nothing to do with any IDE you may happen to be using.
Joined: Apr 08, 2009
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
Joined: Mar 22, 2005
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.