Java application is not showing images on linux platform.
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krishna_Sharma
Posted On:   Wednesday, February 6, 2008 09:32 PM

I am creating a java application. And on linux platform its not showing the images.


I have used ImageIcon to read and set images.


For e.g.,

			
ImageIcon imgIcon=new ImageIcon(file);



file path is correct on linux platform also. I have checked that.



Most of the time, i am extracting image from imgIcon.getImage()


And my custom components are painting the image, by g.drawImage(.......);






What can i do?

Re: Java application is not showing images on linux platform.

Posted By:   Stephen_McConnell  
Posted On:   Thursday, February 7, 2008 07:34 AM

Another thing you might want to check is the "permission" on the Linux files.... Your program group may not have read permissions....


Stephen McConnell

Re: Java application is not showing images on linux platform.

Posted By:   Robert_Lybarger  
Posted On:   Wednesday, February 6, 2008 11:12 PM

You'll probably need old fashioned debugging here. I'd recommend you add some statements in your code to dump out the file's "getAbsolutePath()" as well as "canRead()" and whatever else you think is helpful. It might be helpful if you specify here how the "file" object is generated in the first place, and how you know that it is correct for a Linux platform.
About | Sitemap | Contact