• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 219
  • Last Modified:

Running Applet

I am learning to write applets. I have a IE 4.0 browser and Jdk1_0_2 compiler which I downloaded from the site. I am trying to write the simple helloworld applet ,but i dont see the applet running.My browser is java enabled. I saved the HelloWorld Applet.java in the bin directory and at the dos prompt did javac HelloWorldApplet.java which creatd a .classfile. In the same bin directory I saved the HelloWorldApplet.html file,which saved the file with the IE icon. On clicking on this file I dont see the applet but plain html code written to the browser. Could somebody tell me what could be wrong or what are the steps to be followed.
Ramani
0
ramani081399
Asked:
ramani081399
  • 2
1 Solution
 
AMD_MANCommented:

Can you show us the html and the Java code?  They shouldn't be very long.

AMD_MAN
0
 
snoopy00Commented:
Possibly the default action for .html in your Windows environment is 'edit' and not 'open'.  Try going into your Browser and doing a File>Open on the html document.  That should work.
0
 
AMD_MANCommented:

Your html file can be all of one line.

Like this one:

<applet code=MyClass.class> </applet>

Worked for me on IE 5

AMD_MAN

0
 
ramani081399Author Commented:
AMD MAN

Thank You
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now