Your JRE is not in the program files\java\jre1.8.0_45 folder. Maybe it used to be, but that's some old stuff still kicking around or something.
- There's no bin folder, which there should be as it contains the java executable.
- When you do java -version it's showing 151, not 45.
I'm not sure how or why things are like this, but there's definitely something messed up.
If it were me, I would probably uninstall, then manually comb my system for java stuff, delete it, then reinstall fresh.