[jboss-jira] [JBoss JIRA] (DROOLS-362) Make Drools work with Janino 2.6.1 and javax.tools API
John Engelke (JIRA)
jira-events at lists.jboss.org
Tue Dec 3 01:06:05 EST 2013
[ https://issues.jboss.org/browse/DROOLS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12928070#comment-12928070 ]
John Engelke commented on DROOLS-362:
-------------------------------------
Here are some stack traces ...
Exception in thread "main" java.lang.ExceptionInInitializerError
...
Caused by: org.drools.RuntimeDroolsException: Unable to load dialect 'org.drools.rule.builder.dialect.java.JavaDialectConfiguration:java:org.drools.rule.builder.dialect.java.JavaDialectConfiguration'
at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:321)
at org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:307)
at org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:192)
at org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:170)
at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactoryServiceImpl.java:22)
at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(KnowledgeBuilderFactory.java:74)
at com.foo.foo.rules.DroolsEngine.<clinit>(DroolsEngine.java:46)
... 7 more
Caused by: java.lang.RuntimeException: The Janino jar is not in the classpath
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.setCompiler(JavaDialectConfiguration.java:106)
at org.drools.rule.builder.dialect.java.JavaDialectConfiguration.init(JavaDialectConfiguration.java:61)
at org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:317)
... 13 more
> Make Drools work with Janino 2.6.1 and javax.tools API
> ------------------------------------------------------
>
> Key: DROOLS-362
> URL: https://issues.jboss.org/browse/DROOLS-362
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 5.5.0.Final, 6.0.0.Final
> Environment: JDK 1.7.0_45
> Reporter: John Engelke
> Assignee: Mark Proctor
> Labels: Drools, Janino
>
> Drools can be set to leverage the Janino "super-small, super-fast Java(TM) compiler." But it only works with version 2.5.16, not the latest version 2.6.1.
> Unfortunately, Janino does not support language features above 1.4/1.5 (partial 1.5).
> Version 2.6.1 includes an option to use the JDK built-in javax.tools.JavaCompiler: "JANINO can be configured to use javax.tools.JavaCompiler (available since JDK 1.6), i.e. JAVAC, which removes the Java 5-related limitations." [ See http://docs.codehaus.org/display/JANINO/Home#Home-what ] Unfortunately, this is only available when using the jars commons-compiler.jar and commons-compiler-jdk.jar, which are themselves only available in Janino 2.6.1. [ See http://docs.codehaus.org/display/JANINO/Advanced ]
> This is a nice little blocker for those of us who don't totally agree (or simply cannot agree) with the Eclipse license. Eclipse JDT is out. And, apparently, so is the double-diamond operator (until this is fixed)!
> Thanks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list