Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

viewing applet in IE

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Author and all-around good cowpoke
Posts: 13078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your operating system, what version of which browser, do you have a Java SDK installed, if so which one???
It sure was nice of your sister to lend us her car. Let's show our appreciation by sharing this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic