Optfine install error

Hello, Ive wanted to get back into minecraft but I cannot get optifine to open using Java, I have attempted many methods found online. Such as uninstall, restart, reinstall and also specifically selecting open with other app on windows and using javaw exe. What occurs is nothing. running through java.exe causes the default black windows command box to open for half a second and running through javaw.exe does nothing. None have worked so far, help would be much appreciated, would love to be running minecraft smoother. Cheers.

additionally, my java has installed itself in my program files (x84) instead of program files. My operating system is windows 10. There is also a suggestion on a single forum that linked a jar association fix exe but had feedback that appa screwed up java completely. I’m probably not gonna try that.