Change path to java

I want to get my sponge server running again. I updated Java to 11 and it broke Forge 1.12.2 I just need to have it point to old Java 8 folders, where do I put the path in the bootup process?