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 4321850
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T08:47:55+00:00 2026-05-21T08:47:55+00:00

I wrote an applet which is called IdrawApplet.java and a HTML which is supposed

  • 0

I wrote an applet which is called “IdrawApplet.java” and a HTML which is supposed to contain this applet. But somehow when I run the HTML it says that it can’t find my java-Class.
This is a “Dynamic-Web-Project”. It has a “WebContent”-Folder which contains both, the HTML and the java-Class.

As you will see I tried to insert the applet in two different ways. By putting it in a “applet”-Tag and a “object”-Tag (as suggested) on SELFHTML.org:

<!-- <applet code= "IdrawApplet.class" 
        codebase= "../applets" 
        width= 320 height= 180></applet> -->

        <object classid="java:IdrawApplet.class" 
        codebase="../applets"
        width="800" height="600"></object>

Thanks in advance…

  • 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-21T08:47:56+00:00Added an answer on May 21, 2026 at 8:47 am

    The proper way (which is also the HTML5 way) to embed a Java applet is:

    <object type="application/x-java-applet" width="320" height="180">
        <param name="code" value="MyJavaClass">
        fallback content
    </object>
    

    However, IE doesn’t support the standard way so you need to use IE conditional comments (in an HTML5-compatible way) like this:

    <!--[if !IE]>-->
        <object type="application/x-java-applet" width="320" height="180">
            <param name="code" value="MyJavaClass">
            fallback content
        </object>
    <!--<![endif]-->
    <!--[if IE]>
        <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="320" height="180">
            <param name="code" value="MyJavaClass">
            fallback content
        </object>
    <![endif]-->
    

    Note that for the value of the code param, it doesn’t require the .class extension. Just the class name is preferable.

    For IE, you can also specify a codebase attribute if you want to provide a location to a cab file where IE can fetch Java if you don’t have it. However, if you want to specify the path to the directory the .class file is in, you do that (for any browser) with the codebase param.

    As for enabling scripting with “mayscript”, you shouldn’t need to do that these days. But, if you need to for some reason, you do it with a mayscript param (not attribute) and set its value to true.

    Note that the fallback content will only show when a handler for application/x-java-applet isn’t present or is disabled. It won’t show for a missing .class file as the Java plug-in still loads.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a framework called Processing which is basically a Java applet. It has
I'm accessing a java applet that is running on a website (which i can't
I have developed an applet java with Eclipse, which is included in MyPage.html. I
I have a Java applet that streams video (MJPEG) from a server. I wrote
I'm trying to write a simple java applet program, but it seems that I'm
I wrote a Java Applet which encrypts some form fields and then decrypts on
i have a java applet application in which i use rich text area .
I have a Java Applet which is digitally signed. I need to be able
I'd like to run a command called showfiles which would run the command defaults
I am trying to write a Java applet that will read from a user's

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.