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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:36:55+00:00 2026-05-29T21:36:55+00:00

This is the code for my applet itself. public class Screenshot extends JApplet {

  • 0

This is the code for my applet itself.

public class Screenshot extends JApplet {
    BufferedImage screenshot;

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    public void init() {

    }
}

And that how I use it:

<applet code="Screenshot.class" archive="screenshot.jar" width="1" height="1"></applet>

Now, the problem is that the page with this applet never finishes loading for some reason.
What am I doing wrong? It is the first time I am using applets.

EDIT: I am apparently getting:
incompatible magic value 1013084704

  • 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-29T21:36:58+00:00Added an answer on May 29, 2026 at 9:36 pm

    I find the “never finishes loading” comment the most interesting. Can you clarify what you mean? The throbber keeps going or you get the animated Java logo and it never fades away?

    TIP: Is screenshot.jar in the same directory as your hosted page? Does your web server have permissions to read the JAR so it can send it to the client? You can test this real quick by taking the URL in your browser and removing the page name (e.g. “/myapplet.html”) and replacing it with ‘screenshot.jar’ and see if your browser downloads it or reports a 404 (e.g. “/screenshot.jar”) — if it gives you a 404, then your browser cannot find/load your JAR.

    If that doesn’t help there are a number of issues you could be having here with the actual Java runtime working inside your browser in the first place. With the advent of so many “blocker” extensions for browsers and Chrome/Firefox’s staunch position against running older Java runtimes when newer versions are available, it is entirely possible that your JRE/Applet runtime on your local machine is the one with the problem and not your Applet.

    I would suggest grabbing an example Applet from a Sun tutorial (like this one) and putting it on your page and seeing if it works first. That way you start with a known quantity and troubleshoot from there.

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

Sidebar

Related Questions

Looking at some code, learing about threads : import java.applet.*; import java.awt.*; public class
I am trying to use the KeychainWrapper class provided in this Apple sample code:
This is unmodified code from Apple's iPhone 'Utility Aplication' template: - (void)applicationDidFinishLaunching:(UIApplication *)application {
Got this code for a viewscroller from the apple developers site. @synthesize scrollView1, scrollView2;
Why does this code fail to display the category name Apples using the current
This code in JS gives me a popup saying i think null is a
This code is from Prototype.js . I've looked at probably 20 different tutorials, and
this code always returns 0 in PHP 5.2.5 for microseconds: <?php $dt = new
This code works (C# 3) double d; if(d == (double)(int)d) ...; Is there a
This code always works, even in different browsers: function fooCheck() { alert(internalFoo()); // We

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.