"Hello World" Java Applet

Apple bug ID #13850046

This page contains a simple Java Applet that should display "Hello world" in a small rectangle.

This page is the subject of a bug report with Apple entitled "Java applet won't run first time on Safari (OK on Firefox)".  The contents of the bug report are listed here, updated to reflect additional information as it becomes available. 

Summary: The first time one tries to run even the simplest Java applet, Safari fails to load it. It works fine using Firefox.

Steps to Reproduce:
1. In "System Preferences | Java | General | Settings | Delete Files" check "Installed Applications and Applets" in addition to the other two checkboxes checked by default. Then click OK. Sometimes clicking OK doesn't work, and if so one must persevere until it does work to get the computer to the Java-naïve state of a new user.
2. Using Safari, go to a simple Java applet, such as the "Hello world" applet at https://segal.org/java/Hello/
3. In the "Do you want to run this application" security warning select “I accept the risk and want to run this app”.
4. Click Run

Expected Results: The applet should load.

Actual Results: The applet doesn't load.


If you have any insights, workarounds or comments about this test page please contact Mickey Segal.  A listing of  many Java resources is at this link.

Source code:  

import java.applet.*;
import java.awt.*;

public class Hello extends Applet {

public void init() 
    setBackground(new Color(225,225, 255));

public void paint(Graphics g)
    g.drawString("Hello world", 25 , 25);