Alright so I figured it out. I had to force the installation into my x64 folder instead of the x86 program folder and then changed the path to the correct destination and it seems to be working now. It still says that I have a 32 bit Virtual machine but I guess since I have the java command exclusively looking at the 64 bit exe it's working. Thank you all for the quick replies and if there's a better way than this patch job please let me know
This is what I got
java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) Client VM (build 25.191-b12, mixed mode)
But when I used the java -XshowSettings:all command it shows sun.arch.data.model = 32
I know I installed the x64 version of Java and just reinstalled it just to make sure
So it was giving me an error saying that "java' is not recognized as an internal or external command, operable program or batch file." which I was able to fix by adding the correct patch, but now it is saying "Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap" I have 16GB of ram and my task manager says I'm currently using 4.7GB.
I am trying to allocate more ram to the server and I set up a batch file in the Forge server with the line "java -Xmx2G -Xms2G -jar forge-1.12.2-14.23.4.2705-universal.jar nogui" and when I try and execute it it simply pops up then disappears. any idea what could be the issue? I have updated java to the latest x64 and made sure that the forge client also has enough memory in the arguments line.