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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:17:15+00:00 2026-06-17T15:17:15+00:00

I am having problems trying to run my applet file when I upload it

  • 0

I am having problems trying to run my applet file when I upload it on my website. It keeps giving me errors, but works perfectly fine on my computer. I am using NetBeans to create my Applets and I used the <Applet> tag, since I remember using it and it worked. But NetBeans did state a warning message stating that the <Applet> tag has been deprecated and advised to use <Object>.

Now this is where it gets a little harder for me, because I do not know how to use the <Object> tag for applets. I definitely searched for answers online. Each gives different ways of declaring it for an Applet, but none of them worked. NetBeans constantly returns a warning/error messages each time I attempted different methods stated online.

So my question would be this: how do I correctly use the <Object> tag for a Java Applet?

After much searching, I found an example that returns no value but does not even load the Applet on my computer. The example is below:
java code:

<object data="VirtualArmory.jar" type="application/x-java-applet"></object>

I have attempted both .jar and .class and the output is still the same. The Java plugin kept loading.

EDIT:

This is the error I got when I used the <Applet> tag. But did not get any when using the developJava.js.

java.lang.ClassNotFoundException: VirtualArmory
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

This is how I attempted the developJava.js command. Sorry since it is my first time seeing and using this command, I will tend to make a lot of mistakes.

<script src="http://www.java.com/js/deployJava.js"></script>
<script>
var attributes = {
  codebase:'http://morganaprime.webs.com/',
    code:'VirtualArmory.class',
    archive:'VirtualArmory.jar',
    width:710, 
    height:540
};
var parameters = {gunSize:16};
var version = '1.6';
deployJava.runApplet(attributes, parameters, version);
</script>

I am randomly attempting what ever I can to make this work! This is the link to my testing website.
website here

  • 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-06-17T15:17:16+00:00Added an answer on June 17, 2026 at 3:17 pm

    So my question would be this: how do I correctly use the <Object> tag for a Java Applet?

    The correct answer is "don’t use it" (or the applet element). Instead delegate the responsibility for embedding the applet to deployJava.js. It might look something like this.

    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    var attributes = {
        codebase:'http://morganaprime.webs.com/',
        code:'net.mp.eoncalculator.VirtualArmory',
        archive:'VirtualArmory.jar',
        width:710, 
        height:540
    };
    var parameters = {gunSize:16};
    var version = '1.6';
    deployJava.runApplet(attributes, parameters, version);
    </script>
    

    But NetBeans did state a warning message stating that the <Applet> tag has been deprecated..

    Only since HTML 4.01 (which was a long time ago)!

    Update – working example

    Applet on-screen

    <html>
    <body>
    <script src="http://www.java.com/js/deployJava.js"></script>
    <script>
    var attributes = {
        codebase:'http://morganaprime.webs.com/',
        code:'net.mp.eoncalculator.VirtualArmory',
        archive:'VirtualArmory.jar',
        width:1000,
        height:700
    };
    var parameters = {gunSize:16};
    var version = '1.6';
    deployJava.runApplet(attributes, parameters, version);
    </script>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having problems trying to run a Java file that uses Apache Lucene. I
I'm trying to access a website with python through tor, but I'm having problems.
I've been having real problems trying to get a ruby script to run through
I'm trying to get started using agsXMPP , but I'm having some problems. I'm
I've been trying to get into C++ programming with Eclipse, but I'm having problems
I am trying to run git-svn using TortoiseGit and am having problems (405 Method
I am having problems building a new Rails app. When trying to run @invoice.total
I'm trying to use the Espresso framework , but I'm having problems in the
i'm trying to parse some json in perl, but am having problems with it.
having problems trying to run by unit test with Ant, my test class uses

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.