I am new to programming and webdesign. I started with Eclipse some months ago to learn Java. Everything works fine. When I tried today to run a Static Web Project on a HTTP Server Preview (like in that Tutorial https://www.youtube.com/watch?v=URCyWNflkpQ), Eclipse had some issue with an older Java version. I found Java JDK (1.6) that I deleted afterwards. I reinstalled the latest Java JDK (1.8.0_60) and made sure that only this version is in the /library/java/... . I got me a new Eclipse version as well (Eclipse Neon). Running Javaprojects like before still works. As soon as I try to run my HTMLfile, Eclipse shows me the errormessage:
'Starting HTTP Preview at localhost' has encountered a problem. Could not find JRE executable
When I try it with J2EE Server Preview it works though. Can I simply use this Server Preview instead? This errormessage took me hours of hopelessly searching the internet for answers. Maybe for nothing...^^
Here somebody had the same issue, but on windows. I tried the solutions, but they didn't work either:
Thanks for the help!