Lucene plugin IllegalAccessException
Submitted by Thursday, 24 March, 2022 - 10:04
on
If Lucene search does not work, and you have IllegalAccessException in activity log, add the start option
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
[jEdit Worker #2] [error] IndexImpl: Caused by: java.lang.IllegalAccessException: class org.apache.lucene.store.MMapDirectory$2$1 cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @41cd6d9b
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
[jEdit Worker #2] [error] IndexImpl: Caused by: java.lang.IllegalAccessException: class org.apache.lucene.store.MMapDirectory$2$1 cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module @41cd6d9b