JDK9: An illegal reflective access operation has occurred. org.python.core.PySystemState

I’m trying to run DMelt programs (http://jwork.org/dmelt/) program using Java9 (JDK9), and it gives me errors such as:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PySystemState (file:/dmelt/jehep/lib/jython/jython.jar) to method java.io.Console.encoding()
WARNING: Please consider reporting this to the maintainers of org.python.core.PySystemState
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

How can I fix it? I was trying to add –illegal-access=permit to the last line of the script “dmelt.sh” (I’m using bash in Linux), but this did not solve this problem. I’m very frustrating with this. I was using this program very often, for very long time. Maybe I should never move to JDK9

Leave a Comment