Please take this discussion to the user mailing list.
Mark
elmo wrote:
Hi Edson,
I am using Janino compiler. I have already seen the problem but I'm
still looking for a way to solve it in netbeans. It seems that there's a
portion in the JavaCompilerFactory where it loads the janino compiler using
the Class.forName method (its the org.apache.commons.jci.compilers package).
Had it been classloader.loadClass method, I would have probably solved it
directly by just passing the appropriate classloader.
Since netbeans have a fairly complicated classloading mechanism, it cant
find the janino compiler this way. I have to save the janino compiler and
its related classes into the classpath of netbeans. Since I'll be
downloading the application from a server, I still don't know how to
download these files and save it in the correct classpath automatically.
Well at least there's some hope. Thanks for your reply.
Regards,
Elmo
Edson Tirelli-3 wrote:
Elmo,
It seems to me that you are missing a dependency, probably the JDT
compiler. Drools use either JDT or JANINO to compile the rules. As JDT
is included in Eclipse, you probably is missing it in your netbeans
module. You may use JANINO instead if you prefer.
[]s
Edson
elmo wrote:
Hi,
I have tried to run drools inside netbeans module and found some
errors
.
an excerpt:
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
org.apache.commons.jci.compilers.JavaCompilerFactory.createCompiler(JavaCompilerFactory.java:67)
at org.drools.compiler.PackageBuilder.getCompiler(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
at org.drools.compiler.PackageBuilder.<init>(Unknown Source)
...
Netbeans I think has dedicated classloaders per module, just my
suspect. Do I have a workaround this? Thanks. Appreciate any replies.
Regards,
Elmo
--
Edson Tirelli
Software Engineer - JBoss Rules Core Developer
Office: +55 11 3124-6000
Mobile: +55 11 9218-4151
JBoss, a division of Red Hat @ www.jboss.com
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email