Applets and packages confusion
I've recently been asked at work to maintain an old project written by someone who no longer works at the company. There is no documentation or pretty much anything to the project other than the source that was left behind. I've been asked to add some new features which I've done, but now I having trouble getting the applet to load on our server.
Since this is a work-related thing, I'm sorry I can't provide a lot of specific details; the details are still there, I've just changed the name's around.
The difficulty I'm having is that the applet's code is seperated into two packages, and I can't seem to get my browser to load it correctly. As far as I know, the HTML code loading the applet worked fine before some internal DNS changes made it stop working.
The structure of the applet is like this:
I have the applet able to compile and run on my local machine. I have signed the applet, and the jar signer program verifies that it is signed correctly.
The relevant portion of the html code is like this:
<applet codebase=http://<server's IP address>/Program code="path.to.package.main_stuff.Program.class" archive="program.jar">
The error I get when I try to run the applet is this:
load: class path.to.package.main_stuff.Program.class not found.
Caused by: java.io.IOException: open HTTP connection failed.
at java.security.AccessController.doPrivileged(Native Method)
... 9 more
Other information that might be important:
- I am using Firefox 1.0 on Gentoo Linux with Sun's 1.4.2_06 JRE.
- The original applet was most likely made with Sun's 1.1.8 or 1.2.2 JRE.
Thank you for any help!
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL