So i have a tricky problem for whoever would like to help. I've been playing minecraft for a while, but Lan servers worked too inconsistently for me and my friends (We use Hamachi), so I decided to set up a server for us to play on using my IPv4. The server worked pretty well, but all of the mods were broken. Like they would appear in NEI, but you couldn't craft or spawn in any items from the modpacks. I searched around for a bit and found that my system didn't have enough RAM for the heap dump. It gave me this message:
C:\Users\Joseph\Desktop\B-Team>java -Xmx3G -Xms2G -jar BTeam.jar nogui
Error occurred during initialization of VM
Could not reserve enough space for 3145728KB object heap
C:\Users\Joseph\Desktop\B-Team>pause
Press any key to continue . . .
So I, thinking I was tech savvy enough to fix it, tried to add a Enviornment variable to fix this issue
Name: _JAVA_OPTIONS
Value: -Xmx512M
Now, whenever I try to launch, it gives me a different issue:
C:\Users\Joseph\Desktop\B-Team>java -Xmx3G -Xms2G -jar BTeam.jar nogui
Picked up _JAVA_OPTIONS: -Xmx512M
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
C:\Users\Joseph\Desktop\B-Team>pause
Press any key to continue . . .
So now I'm stuck. Im not sure what exactly to do or if I'm even going in the right direction to fix my issue. I think my files are correct and in order, but look at this https://imgur.com/a/n9QmP to verify. Any and all help would be much appreciated!