Forge does not work

I have tried creating a forge server through Truenas mineos but it does not work. I have tried changing to Java 16 to 11 to 8 but nothing seems to work. Absolutely nothing shows on the log and the server stops very shortly after starting. Please please someone help me this is driving me nuts!