Accepted answer

the problem is that you're using jdk1.8 to compile your code (with target runtime of 1.8).

however, your server is configured to run with jdk 1.6 (you can see it at the top of the console window [ http preview at...])

change your workspace default jre to your jdk 1.8 if you want to use the http preview (i tried and saw no option to specify a runtime jre).

if you want to use tomcat, then specify the correct jre on the first page of the 'new server' wizard.

Related Query

More Query from same tag