File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes viewing applet in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "viewing applet in IE" Watch "viewing applet in IE" New topic

viewing applet in IE

Marcy Barbosa

Joined: Oct 31, 2002
Posts: 1
I am new to Java and going through a tutorial. There are problems with viewing an applet in my browser. The error I receive is: 'The Java Runtime Environment cannot be loaded from <Default\bin\hotspot\jvm.dll>'
Here is the code for the applet and the html code.
import java.applet.Applet;
import java.awt.Graphics;
* The HelloWorld class implements an applet that
* simply displays "Hello World!".
public class HelloWorld extends Applet {
public void paint(Graphics g) {
// Display "Hello World!"
g.drawString("Hello world!", 50, 25);

<TITLE>A Simple Program</TITLE>
Here is the output of my program:
<APPLET CODE= "HelloWorld.class" WIDTH=150 HEIGHT=25>
Any suggestions are welcome.
Thanks, Marcy
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
What is your operating system, what version of which browser, do you have a Java SDK installed, if so which one???
I agree. Here's the link:
subject: viewing applet in IE
It's not a secret anymore!