Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail, servlet error

 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have tried to send mail through a java file. It worked fine.
but, when I try to copy the same code to my servlet it gave errors, from line 29 to 36 that "@Override method does not override or implement a method from a super-type"

any help...

Servlet code:
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both JSE and JEE each have a class called PasswordAuthentication - you're importing the wrong one.
 
malik ge
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot man...

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic