I want to change the java compiler level to 1.6 but it doesn't seem to work
for me. I am trying to use generics in the consequence part.

Following is my code that I used to change the compiler level.

*Drools Version: 5.2.1 GA 
JDK Version : 1.6*

*final Properties properties = new Properties();
properties.setProperty("drools.dialect.java.compiler", "JANINO");
properties.setProperty("drools.dialect.default", "java");
properties.setProperty("drools.compiler.lnglevel", "1.6");


PackageBuilderConfiguration packageBuilderConfiguration =
      new PackageBuilderConfiguration(properties,(ClassLoader[]) null);

final KnowledgeBuilder knowledgeBuilder = KnowledgeBuilderFactory
                .newKnowledgeBuilder(packageBuilderConfiguration);*

Let me know where I am going wrong.

Thanks for the help.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Changing-the-java-compiler-level-in-drools-tp4019770.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to