Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Duplicate Class Error  RSS feed

 
Malhar Barai
Author
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All...
Just noticed a strange behaviour..
Got "duplicate class" error while doing ant "build"...
The error I found out was, one of the java file was not in a package, it was a controller, so I didnt keep it in a package.
So, how do I go about in solving this error.
hope I am clear.
tia
Malhar
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Put the class in a package. Everything having to do with servlets and JSP is greatly simplified by having all classes in packages. Just do it and avoid strange and hard to interpret error messages.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!