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);
}
}
<HTML>
<HEAD>
<TITLE>A Simple Program</TITLE>
</HEAD>
<BODY>
Here is the output of my program:
<APPLET CODE= "HelloWorld.class" WIDTH=150 HEIGHT=25>
</APPLET>
</BODY>
</HTML>
Any suggestions are welcome.
Thanks, Marcy