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, 06:19 AM
By Charlie Flynn in forum Java
Last Post: 08-23-2001, 11:01 AM
Last Post: 05-06-2000, 10:38 PM
Last Post: 05-06-2000, 10:36 PM
Last Post: 03-28-2000, 01:52 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center