Omg I finally got it working. For anyone that sees this thread in the future, you need to find a download for the Java JDK build that is supported as of the time of you reading this(for me it was Java JDK 8). You then need to go into your control panel, go to uninstall an app, then scroll down till you see java. If you see a java development kit other than whatever version you want, then uninstall it. ONLY UNINSTALL THE DEVELOPMENT KIT. Now when you go to run the server either with a bat file or whatever you are doing, then it should work as long as the JDK you downloaded it supported.