I got my computer, an
Acer Aspire 5 around the end of December. One of the first things I did on it was installing a bunch of games, including Minecraft. When I installed Minecraft I wanted to install Optifine, so I went onto Opera GX and downloaded java and Optifine from there. I installed java, but then when I double clicked on Optifine, (it was a .jar file, named
Optifine_1.18.1_HD_U_H4). it told me that it can't run on my PC. I tried opening it with java, but realized I couldn't find the installed java, only the setup. It says it is installed in Apps & Features in settings, an app named
Java 8 Update 321. I uninstalled Java from Apps & Features and reinstalled it from Internet explorer for some reason and it didn't appear yet again. I was using windows 7/8 launcher since the windows 10 launcher wasn't working when I first got it, but as I was typing this I reinstalled the windows 10 launcher and it started to work. My brother owns the same model computer as me but with different specs, and his laptop can run Optifine perfectly fine, as well as Java appearing in his downloads area. I need help because I want to play mods on Minecraft but im stupid

(//Edited the content to add model name)