Ask Your Question

Revision history [back]

Like @berak said, the command you use for the path is expecting the lena picture to be added to the resources of your java project. If you don't do that, the code has no idea where to actually get the image data. Relative paths are the way to go as basics! Configuring your project resources is a step further.

This guide could help you out : http://sandeepverma.wordpress.com/2009/11/27/accessing-a-resource-in-java/