Having trouble viewing my applet
I have an applet that works fine when I view it using appletviewer, however it doesnt work when I try to view it using my browser. I can view other applets but not this one.
The main applet class is called SRT.class. Whenever I try to load it in IE it says "Cannot find SRT.class" and the Java console says that there is no such class def but I know its there.
I dont understand why I can view it fine with appletviewer and not with IE. How come it cant find the class thats there?
I have attached my class files with the html I was using to call it.
Any help is greatly appreciated.
The problem is that you didn't tell the browser where to look for the class.
1 - put your classes in a jar / zip file.
2 - add archive attribute to the applet tag in the html file.
3 - make sure your jar / zip file is located in the same place your html is.
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