aspose file tools*
The moose likes Applets and the fly likes Error loading an applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Error loading an applet" Watch "Error loading an applet" New topic
Author

Error loading an applet

Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Hello guys there,

I have an applet that requires some jar files. When loading, it throws a FileNotFound exception, although the jar file is already at the same location as the applet.
I do not understand why. Does any one experiment the same problem?

Here is the java console output:



Thanks!
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18901
    
    8

The error message actually provides a URL which it says is inaccessible to the browser. If you don't believe that error message, you can copy the URL and paste it into your browser's address bar. Chances are you'll get a 404 (Not Found) response code, although there are other reasons why the URL can't be accessed.

So once you've done all that, your job is to look at your server and find out why the server doesn't return anything for that URL. Perhaps there really isn't anything there and the jar files are somewhere else. Perhaps your server doesn't return jar files. Any number of things could be wrong, but you won't know until you start looking.
Haina Minawa
Ranch Hand

Joined: Oct 13, 2011
Posts: 119
Paul Clapham wrote:The error message actually provides a URL which it says is inaccessible to the browser. If you don't believe that error message, you can copy the URL and paste it into your browser's address bar. Chances are you'll get a 404 (Not Found) response code, although there are other reasons why the URL can't be accessed.

So once you've done all that, your job is to look at your server and find out why the server doesn't return anything for that URL. Perhaps there really isn't anything there and the jar files are somewhere else. Perhaps your server doesn't return jar files. Any number of things could be wrong, but you won't know until you start looking.


I pasted the URL into browser and the jar file is downloadable, I didn't get a 404 error. Very strange!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error loading an applet