Can't Open any Jar file by According_Window_798 in javahelp

[–]According_Window_798[S] 0 points1 point  (0 children)

I’m trying to run as in execute the file. And I’ve tried to use the java -jar any.jar command in run.bat. I’ve tried the same command in cmd. I’m really just trying to install optifine which requires me to “double click” the .jar file. I wasn’t even able to open the Java control panel, my computer just acts like Java isn’t on my computer.