Hello, lately ive been having the issue that my game crashes every time i have optifine in the folder. I am using minecraft forge 1.18.2. It runs perfectly fine and doesnt crash but as soon as i try to run the game with optifine in the mods folder it keeps telling me "invalid java runtime" i literally tried EVERYTHING. From installing java about 10 times, installing both 1.18.2 versions of optifine and trying each about 100 times, re-installing all sorts of 1.18.2 versions of forge, etc. Can someone please help me?
I did not set any custom settings for java.
I have forge 1.18.2 (40.1.0) BUT have also tried forge 1.18.2 (40.1.67) many many times.
Someone help me please, i am quite desperate.