Unable to run drools project with JDK17

1,403 views
Skip to first unread message

Nivetha

unread,
Oct 4, 2023, 6:11:33 AM10/4/23
to Drools Setup
Hi,

     I'm facing below issue while running drool project with JDK17. What is the latest JDK  compatible version for drool?

Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @3b938003
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178)
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172)
at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)

Regards
Nivetha R

Manikandan Mp

unread,
Oct 4, 2023, 8:14:16 AM10/4/23
to drools...@googlegroups.com
May I know drools version?

--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/08ebbd28-b422-46c5-828e-54e5c0b6b4bcn%40googlegroups.com.

Manikandan Mp

unread,
Oct 4, 2023, 8:15:47 AM10/4/23
to drools...@googlegroups.com
Drools 8 series required min JDK 11.

James Downes

unread,
Oct 4, 2023, 8:20:17 AM10/4/23
to drools...@googlegroups.com
We run Drools 7.47.0.Final with Java17 quite happily.


James

--
Reply all
Reply to author
Forward
0 new messages