aspose file tools*
The moose likes Applets and the fly likes Where Do I place the Folder for Java Applet Images? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Where Do I place the Folder for Java Applet Images?" Watch "Where Do I place the Folder for Java Applet Images?" New topic
Author

Where Do I place the Folder for Java Applet Images?

Stanley Mungai
Ranch Hand

Joined: Dec 09, 2011
Posts: 155

Hi Guys I have a Java Applet which is supposed to show images. The Applet is Appearing but it is not loading the Images which am sure it is a Problem of where the Image folder is located. Can Someone Please Advise Me on where to place the Folder for the Applet to Load the Images?
This is the code am using to load the images:



Give a beggar a fish; feed him for a day. Teach him how to fish; Feed him for a lifetime.
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8398
    
  23

Stanley Mungai wrote:Hi Guys I have a Java Applet which is supposed to show images. The Applet is Appearing but it is not loading the Images which am sure it is a Problem of where the Image folder is located. Can Someone Please Advise Me on where to place the Folder for the Applet to Load the Images?

It seems to me that that will be dependent on what getCodeBase() returns. The thing that worries me a bit is the ".JPG". I'm no expert on these things, but I think I'd put ".jpg" as my first crack (I'm pretty sure that ".jpeg" is also a valid suffix for JPEG files).

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
I'd check the access logs of the server to determine which URLs the applet is trying to access, and what the response code is (200, 404, etc.) That should point to the problem real quick.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where Do I place the Folder for Java Applet Images?