This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Kubernetes in Action and have Marko Luksa on-line!
See this thread for details.
Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.NoClassDefFoundError: javax.imageio.ImageIO  RSS feed

 
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
 
Bartender
Posts: 11445
18
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
 
Rancher
Posts: 42972
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
Boost this thread!