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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:24:21+00:00 2026-06-01T13:24:21+00:00

We have an applet, a jar file that is stored on the desktops and

  • 0

We have an applet, a jar file that is stored on the desktops and one of the pages of a portal site calls this applet.

We have issues with the applet not initialising in some of the environments and the investigation led to checking the tag where the jar is called.

We are not sure whether we need to use the ‘codebase’ attribute in the tag. (And we can’t just test it easily unfortunately.)

What we have so far in the applet tag is the ‘code’ attribute that is specified and the ‘Archive’ attributes which refers to a file on the local machines like this:

Archive='file:///WINDOWS/XYfolder/some.jar'

W3C says that the ‘codebase’ attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document. (which means it would look for the jar file on the server I guess).

For ‘Archive’ W3C says, this attribute may be used to specify a space-separated list of URIs for archives containing resources relevant to the object, which may include the resources specified by the classid and data attributes. Preloading archives will generally result in reduced load times for objects. Archives specified as relative URIs should be interpreted relative to the codebase attribute.

– My question is how do you specify a relative URI in the archive attribute and how do you specify an absolute URI?

– Is the Archive attribute specified above as relative or absolute URI?

Many thanks

  • 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-01T13:24:23+00:00Added an answer on June 1, 2026 at 1:24 pm

    ..how do you specify a relative URI in the archive attribute and how do you specify an absolute URI?

    E.G.

    Relative

    // icon.gif can be found in the docs directory that is a sibling to this directory
    "../docs/icon.gif"  
    // icon.gif can be found in the docs directory that is a child to this directory
    "./docs/icon.gif"
    

    Absolute

    // a complete path to a web resource
    "http://pscode.org/media/stromlo2.jpg"
    // an absolute path to a local resource
    "file:///WINDOWS/XYfolder/some.jar"
    

    Is the Archive attribute specified above as relative or absolute URI?

    It is an absolute reference.


    Note that an applet should not typically be loading Jars off the computer of the end-user (unless they were cached locally by the JRE – but that is all ‘invisible’ to the app.). That is most likely the real problem here.

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

Sidebar

Related Questions

I have an jar file with an applet. This applet runs perfectly except for
I have an applet that throws this exception when trying to communicate with the
I have an applet that communicates with a servlet using Http (Not sockets). Currently,
I have a single .jar file that I create by using the runnable .jar
I have .jar file which during runtime reads one .dylib library which I compiled
How can i tell this java applet to take the .jar file from the
I have an applet that will not load for 1 client who is running
I have a multi-class applet that has been exported using Eclipse as a .jar
I have a jar file which is used in html file as applet. I
I have created an applet jar. That jar contains an images in the following

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.