So im trying to open a .jar file called optifine with a run.bat by using the following code in windows 11
start javaw -OptiFine_1.19.2_HD_U_H9 (1).jar
but after that it responds with an error of:
Error: could not create the java virtual machine.
Error: A fatal exeption has occured. program will exit.
how do i manage it so that i can open the .jar file with a .bat code . or just open it in any way and also future .jar files that may come up
I just downloaded the latest version of java too, deleted it and downloaded it back up again, and reset my laptop multiple times, yet i cant manage to open the .jar file, i just need some answers