I build dynamic web project in eclipse JAVA EE , I make a servlet and write in this code :
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
{
try {
String comment = request.getParameter("comment") ;
ANTLRInputStream input = new ANTLRInputStream(request.getParameter("comment"));
} catch(Exception exception) {
exception.printStackTrace();
}
}
when I run the project on server "apache-tomac-7" it take the input from text area then throw exciption :
**java.lang.NoClassDefFoundError: org/antlr/v4/runtime/ANTLRInputStream
MyServlet.doPost(MyServlet.java:41)
javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)**
so How I can solve this problem ?