Hi Dw.
I had java 8 installed I'm, the problem is that when I run a bat file that uses the java it says Invalid maximum heap size -Xmx4g. I've even tried to uninstall and reinstall java but the same problem persists.
I've added the Xms as well as Xmx in the environment property window but still the same issue, I've restarted the laptop after every attempt but still.
I've even set it on Java Control Panel as well but still the same issue is raised. Anyone who might know another location as to where is this 4g coming from because I don't recall setting that.