Eclipse error “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path”

[J]ust a few moment ago i had this kind of error message “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path” when created Maven web project on Eclipse as you can see from picture below.

1. the error

The solution is very simple actually, don’t be panic. First just make sure that you have installed Tomcat (or any other servers) in your machine. Second, right click on the project node -> Properties -> Project Facets -> Runtimes Tab -> Check on Tomcat (or others)

2. the solution

Voila!, that error should be disappear now. Hope this tutorial helps other. Happy Java coding 😉

Facebook Comments
 

Agung Setiawan

Agung Setiawan adalah software engineer di BukaLapak.com, penulis sekaligus pecinta sastra, dan pembaca buku

 
Halo, perkenalkan saya Agung Setiawan.
Saya Software Engineer di BukaLapak.
Simak pemikian saya soal dunia Software Engineering via Twitter di @agungsetiawanmu dan facebook
Blog ini saya update seminggu sekali jadi sering-sering saja mampir
Mau belajar Vim bareng saya?
Belajar ngoding dari nol menggunakan PHP

6 thoughts on “Eclipse error “The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path”

Leave a Reply

Your email address will not be published. Required fields are marked *