I have JDK1.3 installed in my PC. I have written an Applet in Java called Applicant.java.I could compile the program successfully, however 1. when I type "appletviewer Applicant" at the dos prompt i get the message : I/O Exception while reading c:\jdk1.3\work\Applicant (The sustem cannot find the specified file) make sure that Applicant is a file and is readable. 2.when I tyoe "appletviewrer Applicant.class" I get the message: warning :no Applets were started .Make sure the input contains an Applet <tag> and tells me about the usage etc. 3.When I created an HTML file as follows <html> <Applet code= "Applicant.class" height=500 width= 300 codebase= "c:\jdk1.2.2\work" align=center alt="not supported" > </Applet> </html>
and run it using Internet Explorer it shows a gray patch on the screen of the dimensions of an applet and nothing else.
when I run it on the Netscape navigator it seems to come up and nothing con\mes up and the staus bar says "Applet Applicant error:java.lang.ClassFormatError: Class already loaded" and sometimes some such similar error.
I have changed the directory of both .java and .class files in all possible ways an I feel that it may not because it is in the wrong directory. However I have confusion regarding the directory structure of Java Kit as dofferent kits have different structures.
To have java 2 applets run in a browser,you must download the jre for the browser. Then you must use object(for internet explorer) and embed(netscape) tags to make the applet invoke the downloaded jre. Applet tags don't work for java 2 applets in the available browsers. ------------------ I hope its helps, feel free to email me firstname.lastname@example.org
please buy this thing and then I get a fat cut of the action:
global solutions you can do at home or in your backyard