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

  • Home
  • SEARCH
  • 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 8601157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:46:42+00:00 2026-06-12T01:46:42+00:00

I’m trying to explore URL data capabilities to embed in HTML Java applet. The

  • 0

I’m trying to explore URL data capabilities to embed in HTML Java applet.

The documentation, for HTML tags to instantiation a java applet 1, don’t exclude this option but I don’t seem to be able to to this.

I have different variations of HTML tags values using (object and applet) and what I think came close to my goal was this:

<object type="application/x-java-applet" width="100" height="100">
  <param name="archive" value="data:application/java-archive;base64,BASE64_OF_JAR"/>
  <param name="code" value="test.class"/>
  <h1>not working</h1>
</object>

This variation result in an IlegalArgumentException with text “name”. I check this clicking on the Error Icon on the Browser. On The java console the whole stack trace is:

java.net.MalformedURLException: unknown protocol: data
        at java.net.URL.<init>(Unknown Source)
        at java.net.URL.<init>(Unknown Source)
        at sun.plugin.util.ProgressMonitorAdapter.setProgressFilter(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager.setupProgress(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

Does anyone have an idea about how to do this or if it’s not possible?

PS: There’s an example of how to embed an JNLP in HTML by Oracle 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-12T01:46:43+00:00Added an answer on June 12, 2026 at 1:46 am

    The HTML4 specification for OBJECT element allows inline data embed through URL DATA and the Applet instantiation documentation from Oracle also allows this. The tests performed show the Java browser plugin (from Oracle), and the available source code from Java SE 6, shows that the implementation doesn’t support it.

    In this case, doesn’t seem to matter if the browser support it, because the resource handling of resources reference in the Object/Applet HTML Element are performed by the browser plugin.

    An alternative would be to be use applet deserialization, serialized through URL DATA, using the OBJECT attribute of APPLET element. As mentioned in the HTML4 specification, there is no active support for APPLET and OBJECT attribute, and JRE doesn’t seem to support Object deserialization from URL DATA too.

    In a nutshell, JRE doesn’t support base64 deserialization in the CODE, OBJECT and ARCHIVE HTML attributes.

    There is also a BUG regarding URL DATA support in JRE1.4.1 that wasn’t fulfilled Bug ID: 4756961.

    The results of my tests with JRE7 in a 64 bits Windows machine are the following:

    • Passing a JAR through URL DATA to ARCHIVE attribute results in an IllegalArgumentException in Applet2Manager.loadJarFiles();
    • Passing a class through URL DATA to CODE attribute results in a ClassNotFoundException in Applet2ClassLoader.findClass();
    • Passing a serialized applet through URL DATA to OBJECT attribute results in a FileNotFoundException in Plugin2ClassLoader.getResourceAsResource().
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I am trying to understand how to use SyndicationItem to display feed which is
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I have this code to decode numeric html entities to the UTF8 equivalent character.

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.