Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet: Class Not Found Exception?  RSS feed

 
Kristian Wijaya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all.

I was following this tutorial about JSP Servlet: https://www.youtube.com/watch?v=Av6zh817QEc

And when I run it and tried accessing the Servlet (except changing the package name to just 'com.pkg'), I get a ClassNotFoundException on the package that I built:



Where did I go wrong in this? Here's my web.xml:



I need help in this. Thanks.
 
Dave Tolls
Ranch Hand
Posts: 2667
30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where is your class file?
 
Kristian Wijaya
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where does Eclipse store the Class files? I wanted to 'build' or 'publish' and the Eclipse just won't let me.

Using Eclipse Neon, btw.

EDIT: I managed to make it work when I downgrade to Eclipse Mars, whereas the Class files were created in the proper folder. Why doesn't it build the class files in Neon?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!