I got this error in a MIDI code
Jun 22, 2019 9:27:23 AM java.util.prefs.WindowsPreferences <init>
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
This looks like a null pointer exception in Windows native code. I'm not even sure if it's related to MIDI, since apparently at this point the native module seems to be simply checking the Windows Registry for something.
You may need to do some sort of Registry setup to make this work, although if that's the case, I'd say there's a bug in the native code for not telling you about it.
We might be able to help more if you pasted in the stack trace and told us which line of your example it died on.
Being persecuted doesn't in any way prove your righteousness or your beliefs. Many people get persecuted because they are repugnant or annoying. Or just because they can be.