wood burning stoves*
The moose likes Beginning Java and the fly likes cannot be instantiated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "cannot be instantiated" Watch "cannot be instantiated" New topic
Author

cannot be instantiated

Anthony Smith
Ranch Hand

Joined: Sep 10, 2001
Posts: 285
JimiSingleImageRasterEncoder encoder = new JimiSingleImageRasterEncoder();
JimiRasterImage raster = Jimi.createRasterImage(image.getSource());
Those are the two lines in my program.
It says for this statement:
JimiSingleImageRasterEncoder encoder = new JimiSingleImageRasterEncoder();
It cannot be instantiates.
What do I do?
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Is JimiSingleImageRasterEncoder abstract?
Is there a constructor in your class that takes NO parameters?
If there are constructors that take parameters - the compiler will no longer automatically supply one that takes none.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cannot be instantiated
 
Similar Threads
InstantiationException with XMLEncoder
password decoding help required
use bytebuffer send Chinese will throw exception.
Help:: how can I do the base64 encoding?
How to call a generic method when I only have an Object