smth wrong with starting applet
I've got a problem with starting my applet.
The html code :
In Netscape 7.2 the following information appears : Applet TestApplet notinited, whereas Internet Explorer shows: java.lang.ClassNotFoundException: krzywel.LissApl.class, what can be wrong?
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<applet codebase=".krzywel" code="krzywel.LissApl.class" name="TestApplet" width="400" height="500" hspace="0" vspace="0" align="middle"></applet>
I'm viewing the applet with JBuilder (using its tools) and everything is ok, but when I am trying to start the html file by clicking on it, it doesn't work properly :/ (and thiat messages appears in a browsers).
->Maybe my browsers runs different java version than this implemented in JBuilder?
I wanted to check the java version installed in my os , so I've wrote in a cmd prompt window a line: java -version, and the answer was that the name java is not recognized , ...but my browsers works with applets seted in internet.
Can anyone put this all together?
Take a look at this:
I would recommend using the XHTML standard and use the strict dtd.
It looks like your code attribute should not have a .class on the end of it. Also, your codebase attribute looks a little odd with teh leading . but it might be right depending on what your directory structure looks like.
Hope this helps.
By Tataroz T. in forum Java
Last Post: 10-20-2005, 07:19 AM
By Charlie Flynn in forum Java
Last Post: 08-23-2001, 12:01 PM
Last Post: 05-06-2000, 11:38 PM
Last Post: 05-06-2000, 11:36 PM
Last Post: 03-28-2000, 02:52 AM
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