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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:12:11+00:00 2026-05-23T09:12:11+00:00

I have developed an applet java with Eclipse, which is included in MyPage.html. I

  • 0

I have developed an applet java with Eclipse, which is included in MyPage.html. I call a webservice and get a response. It works in Eclipse. The Webservice is not on the same server as my computer. So I think I have to sign my applet. I did it with

keytool -genkey -keystore myStore -alias myAlias
jarsigner -keystore myStore -signedjar sMyJar.jar MyJar.jar myAlias
keytool -export -alias myAlias -file myCert.cer

I got a signed jar file, that I put in the folder lib. I have a class, Test.class, of my applet, that I put in the folder src.
I put this code inside my html page :

<div>
<applet codebase="src/" code="Test.class" height="80" width="300" 
hspace="10" vspace="10" name="Test" archive="lib/sMyJar.jar"></applet>
</div>  

But I have not the pop up which should ask me whether I want to execute the applet. Even if I erase the code of the request to the webservice, and I write a very simple code, it does not change anything – except the code works (displays “hello world” for example).

I ve seen a similar question of the forum : [http://stackoverflow.com/questions/908748/how-do-i-sign-a-java-applet-for-use-in-a-browser][1] : he seemed to have the same problem, and fixed it. He said ” The problem was that my jar files weren’t being compiled in the same way that I was referencing the class files”. But I don’t know how I can change that, and if it is the reason ( I m a very beginner in Java).

And should I put the Cert file in a particular folder ?

Thank you so much for your help.

  • 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-23T09:12:12+00:00Added an answer on May 23, 2026 at 9:12 am

    When you use the archive parameter, the codebase refers not to the location of the unpackaged class files (which the browser doesn’t need) but to the location of the archive. The question is, where is your HTML file relative to the JAR file. For example, suppose the HTML file were in the parent directory. Then you could write it like this:

    <applet codebase="lib/" code="Test.class" height="80" width="300" 
    hspace="10" vspace="10" name="Test" archive="sMyJar.jar"></applet>
    

    Also, I know you mentioned this is a test, but as I can tell you from hard experience, it is a very bad idea to use the default package in Java. I strongly suggest you not do that.

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

Sidebar

Related Questions

We have developed a webservice that sits and runs in the context of a
I have developed about 300 Applications which I would like to provide with multi-language
I've never programmed in java or eclipse before, although I have used c# and
I have developed for a number of years in Java, primarily for Linux and
I am making a Java Applet right now. I have compiled with Java 1.5.
I have developed some classes with similar behavior, they all implement the same interface.
I have developed some custom DAO-like classes to meet some very specialized requirements for
We have developed our website(Business users website) in .net Framework 2.0 Our client us
I have developed a VB.NET WCF service that recives and sends back data. When
We have developed a website that uses MVC, C#, and jQuery. In one of

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.