Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPEGEncode  RSS feed

 
Sirojan Gnanaratnam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,

When I attend to Build My Application I got Below Errors .



This is My Capthcha Servlet , Do you Have any suggestion.


 
jatan bhavsar
Ranch Hand
Posts: 299
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sirojan,

Have included the jar for the com.sun.image.codec.jpeg.* ???
Error is coming because you havent included require jar files.
Regards
Jatan

 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16026
87
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using classes in the com.sun.* packages? Those are internal classes, which you are not supposed to use directly. These internal classes can change or disappear in new Java versions.

See this: Why Developers Should Not Write Programs That Call 'sun' Packages

Instead of using those internal classes, use ImageIO to read or write image files. See the tutorial: Writing/Saving an Image.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!