• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError: javax.imageio.ImageIO

 
ibrahim yener
Ranch Hand
Posts: 202
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am trying to Convert image into 256 colors but my code gives me NoClassFoundError
I have included JRE 7 library as well but i have no idea why it is happening.

What am i trying to do is that take picture and convert it into 256 colors and save it.

This is my code.



Thanks for any help
 
Maneesh Godbole
Saloon Keeper
Posts: 11327
16
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please copy paste the full stack trace here
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you consult the Android javadocs you'll find that the javax.imageio package is not part of the Android API (and neither are the java.awt and javax.swing packages, so you can't use any of those classes either, like Graphics and BufferedImage).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic