Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7194647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:24:54+00:00 2026-05-28T20:24:54+00:00

I have an Hello world applet,taken from book example. HelloWorldApplet.java import java.awt.*; import javax.swing.*;

  • 0

I have an Hello world applet,taken from book example.

HelloWorldApplet.java

import java.awt.*;
import javax.swing.*;

/**
 * @version 1.22 2007-06-12
 * @author Cay Horstmann
 */
public class HelloWorldApplet extends JApplet
{
   public void init()
   {
      EventQueue.invokeLater(new Runnable()
         {
            public void run()
            {
               JLabel label = new JLabel("Hello, World applet", SwingConstants.CENTER);
               add(label);
            }
         });
   }
}

HelloWorldApplet.html

<html>
<body>
<applet code="HelloWorldApplet.class"
   width="300" height="100">
</applet>
</body>
</html>

and while running it in my browsers I have following trouble.

But other non-applet html files (say javascript files) are successfully displayed in both firefox and internet explorer.

case FireFox version 6.0.2:
Firefox is abruptly getting closed whenever I execute this HelloWorldApplet.html in it.
Hence no output.

case InternetExplorer version 8:
Internet exp. is showing “this tab has been recovered” whenever I execute this HelloWorldApplet.html in it. Hence no output.

What I have done so far:
I tried out many links and followed their instructions. But, In Tools->Internet options->Advanced (tab) in internet explorer and Tools->Options in firefox I cannot see any find any checkboxes releated to java as they said.
Where the problem is:
They said if you cannot find any checkbox, then you must install JDK. But I already installed jdk 6.0.

In command-prompt,

C:\Users\MuthuGanapathy>java -version
java version "1.6.0_25"
Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Java HotSpot(TM) Client VM (build 20.0-b11, mixed mode)

which says java is installed in my system.

So, what I have to do now to run applets in my browers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T20:24:55+00:00Added an answer on May 28, 2026 at 8:24 pm

    Deploying applets with the applet tag is deprecated. It still may work, and the behaviour you experienced is in any case not acceptable, but you still should try the current methods for (multi browser) applet deployment as outlined here first:

    • http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/deployment_advice.html
    • http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/applet/applet_deployment.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a hello-world style java ee application using maven3 glassfish3 and javaee6. I
I have this simple hello world version of a google map api javascript v3
Busy learning Ruby... the documentation have an example: hello world.count(lo, o) that return 2
The question is for perl. For example if I have hello.world and the specified
Does anyone have a hello world sample or tutorial for creating an Eclipse plugin
I have created a Hello World web part. When I pressed F5 in Visual
I have tried to generate Hello World with openxml sdk. To my surprise when
I have done this: $ z() { echo 'hello world'; } How do I
In my hello world application, i have a button and a text field set
I have a couple of questions about Hello World in Clojure: (println Hello, world!)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.