How to sign java applet policy to end user?

i have putted my applet class on server, i want all end users can access it on server, how to sign the java.policy to there JRE?
can anyone help me?

I found this some where else. It shows how to sign an applet.
START OF DOC
How To Sign a Java Applet
The purpose of this document is to document the steps required to sign and use an
applet using a self-signed cert or CA authorized in the JDK 1.3 plugin.
The original 9 steps of this process were posted by user irene67 on suns message forum:
http://forums.java.sun.com/thread.jsp?forum=63&thread=132769
-----begin irene67's original message -----
These steps describe the creation of a self-signed applet. This is useful for testing purposes. For use of public reachable applets, there will be needed a "real" certificate issued by an authority like VeriSign or Thawte. (See step 10 - no user will import and trust a self-signed applet from an unkown developer).
The applet needs to run in the plugin, as only the plugin is platform- and browser-independent. And without this indepence, it makes no sense to use java...
1. Create your code for the applet as usual.
It is not necessary to set any permissions or use security managers in
the code.
2. Install JDK 1.3
Path for use of the following commands: [jdk 1.3 path]\bin\
(commands are keytool, jar, jarsigner)
Password for the keystore is any password. Only Sun knows why...
perhaps ;-)
3. Generate key: keytool -genkey -keyalg rsa -alias tstkey
Enter keystore password: *******
What is your first and last name?
[Unknown]: Your Name
What is the name of your organizational unit?
[Unknown]: YourUnit
What is the name of your organization?
[Unknown]: YourOrg
What is the name of your City or Locality?
[Unknown]: YourCity
What is the name of your State or Province?
[Unknown]: YS
What is the two-letter country code for this unit?
[Unknown]: US
Is CN=Your Name, OU=YourUnit, O=YourOrg, L=YourCity, ST=YS, C=US
correct?
[no]: yes
(wait...)
Enter key password for tstkey
(RETURN if same as keystore password):
(press [enter])
4. Export key: keytool -export -alias tstkey -file tstcert.crt
Enter keystore password: *******
Certificate stored in file tstcert.crt
5. Create JAR: jar cvf tst.jar tst.class
Add all classes used in your project by typing the classnames in the
same line.
added manifest
adding: tst.class(in = 849) (out= 536)(deflated 36%)
6. Verify JAR: jar tvf tst.jar
Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/
68 Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/MANIFEST.MF
849 Thu Jul 27 12:49:04 GMT+02:00 2000 tst.class
7. Sign JAR: jarsigner tst.jar tstkey
Enter Passphrase for keystore: *******
8. Verifiy Signing: jarsigner -verify -verbose -certs tst.jar
130 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/MANIFEST.MF
183 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/TSTKEY.SF
920 Thu Jul 27 13:04:12 GMT+02:00 2000 META-INF/TSTKEY.RSA
Thu Jul 27 12:58:28 GMT+02:00 2000 META-INF/
smk 849 Thu Jul 27 12:49:04 GMT+02:00 2000 tst.class
X.509, CN=Your Name, OU=YourUnit, O=YourOrg, L=YourCity, ST=YS, C=US
(tstkey)
s = signature was verified
m = entry is listed in manifest
k = at least one certificate was found in keystore
i = at least one certificate was found in identity scope
jar verified.
9. Create HTML-File for use of the Applet by the Sun Plugin 1.3
(recommended to use HTML Converter Version 1.3)
10. (Omitted See Below)
-----end irene67's original message -----
To make the plug-in work for any browser you have two options with the JDK 1.3 plugin.
1) Is to export a cert request using the key tool and send it to a CA verification source like verisign.
When the reponse comes back, import it into the keystore overwriting the original cert for the generated key.
To export request:
keytool -certreg -alias tstkey -file tstcert.req
To import response:
keytool -import -trustcacerts -alias tstkey -file careply.crt
An applet signed with a cert that has been verified by a CA source will automatically be recognized by the plugin.
2) For development or otherwise, you may want to just use your self-signed certificate.
In that case, the JDK 1.3 plugin will recognize all certs that have a root cert located in the JDK 1.3 cacerts keystore.
This means you can import your test certificate into this keystore and have the plugin recognize your jars when you sign them.
To import self-signed certificate into the cacerts keystore, change directory to where the JDK plugin key store is located.
For JDK 1.3.0_02: C:\Program Files\JavaSoft\JRE\1.3.0_02\lib\security
For JDK 1.3.1: C:\Program Files\JavaSoft\JRE\1.3.1\lib\security
Import your self-signed cert into the cacerts keystore:
keytool -import -keystore cacerts -storepass changeit -file tstcert.crt
(the password is literally 'changeit')
Now, regardless of which method you use, the applet should be recognized as coming from a signed jar. The user can choose to activate it if he / she chooses. If your applet uses classes from multiple jars, for example Apache's Xerce's parser, you will need to sign those jars as well to allow them to execute in the client's brower. Otherwise, only the classes coming from the signed jar will work with the java.security.AllPermission setting and all other classes from unsigned jars will run in the sandbox.
NOTE: Unless otherwise specified by the -keystore command in all keytool and jarsigner operations, the keystore file used is named '.keystore' in the user's home directory.
The first time any keystore is accessed (including the default) it will be created and secured with the first password given by the user. There is no way to figure out the password if you forget it, but you can delete the default file and recreate it if necessary. For most operations, using the -keystore command is safer to keep from cluttering or messing up your default keystore.

Similar Messages

  • How to load Java applets on Gemxplore 3G card ? (APDU inside)

    Hi,
    Does anyone have experience on how to load Java applets into Gemxplore 3G card ?
    I tried to load the tck applets into Gemxplore 3G card but the got sw 6985 for INSTALL FOR INSTALL Make Selectable
    Here is the details on APDUs.
    Do you know what is wrong ?
    Regards
    -guoqing
    SELECT
    *00 A4 04 00 07 A0 00 00 00 18 43 4D*
    *61 1A [Normal ending of the command with <26> bytes of extra information.]*
    INITIALIZE UPDATE
    *80 50 01 01 08 00 01 02 03 04 05 06 07 (1C)*
    *43 4D 6D FF 23 B5 C4 13 20 1A 01 01 9F 15 97 A5 CE E9 CF A7 19 C6 8D F9 8B 9A 78 DB, 90 00 [Normal ending of the command.]*
    EXTERNAL AUTHENTICATE
    *84 82 01 00 10 EB 88 23 3C B6 4E 23 E9 69 1B 30 08 56 7A 1F 8F*
    *90 00 [Normal ending of the command.]*
    INSTALL FOR LOAD
    *84 E6 02 00 24 09 A0 00 00 00 62 B0 BA A1 01 00 00 0E EF 0C C6 02 00 00 C8 02 00 00 C7 02 00 00 00 53 9D 96 C2 D4 8F 41 6B (00)*
    *00, 90 00 [Normal ending of the command.]*
    SELECT
    *00 A4 04 00 07 A0 00 00 00 18 43 4D*
    *61 1A [Normal ending of the command with <26> bytes of extra information.]*
    INITIALIZE UPDATE
    *80 50 01 01 08 00 01 02 03 04 05 06 07 (1C)*
    *43 4D 6D FF 23 B5 C4 13 20 1A 01 01 A5 57 A0 A0 00 7E 5A 3F A5 10 6A 37 69 16 AA 6F, 90 00 [Normal ending of the command.]*
    EXTERNAL AUTHENTICATE
    *84 82 01 00 10 28 BA 3A C4 D6 05 C9 C9 70 37 39 F1 7B 6D F8 80*
    *90 00 [Normal ending of the command.]*
    INSTALL FOR INSTALL Make Selectable
    *84 E6 0C 00 36 09 A0 00 00 00 62 B0 BA A1 01 09 A0 00 00 00 62 B0 BA A1 81 09 A0 00 00 00 62 B0 BA A1 81 01 00 0C EF 08 C7 02 00 00 C8 02 00 00 C9 00 00 A4 CE 57 8B 19 F2 9E 0A (00)*
    *69 85*
    Edited by: guoqing on May 19, 2008 6:06 AM
    Edited by: guoqing on May 19, 2008 6:20 AM

    I don't have any experience with GTO's cards, but one would expect they provide a user guide or a data sheet how to load applications.. Reasons could be:
    1. Issuer policy to have a certain security level for content management --> raise the security level to C_MAC + ENC
    2. Issuer policy this card is static --> no post-issuance

  • How relevant is Java Applet technology in 2006 for wide web deployment?

    How relevant is Java Applet technology in 2006 for wide web deployment?
    I'm developing a website which requires deployment Internationally to as many users as possible. Many people advise to stay away from Java applets, others say only use Java 1.1 (AWT limitation), some say use Flash, others say stay away from applets and plugins altogether.
    Of course it depends on the content. I have interactive 3D content currently powered by Java 1.1 applet BUT I have been using Swing to introduce custom GUI functionality but which I know may limit compatibility. I'm torn by this whole debate and what impact it will have on the relevancy of my website.
    How many users out there have browsers that will cope with my content?
    Then there's the issue of all the various different browsers nowadays. I'm testing for IE and Netscape on Windows platform, but what about other browsers and OSes on other platforms? I notice that some websites have a page with tables to show users what browser is and is not compatible with their web content. How far must a web developer go to test all these things exhaustively?
    Then there's the issue of a 16MB download for the latest Java plugin if a user's system is not up to date. Can all modern browsers handle Java even with the latest Java download?
    Or should I just tell the user to get a compatible browser? Another 10-20MB download, depending.
    Or how about Flash? That reportedly has a vast International deployment base, but do I need to pay for a Flash editor / IDE / compiler? So far I've been using freeware (HTML, Java, NetBeans, PHP, MySQL, PNG images) to achieve excellent results within my ludicrously limited budget. The Flash Player is only a 930KB download, and that is quite user friendly even if I must tell a user to get the latest version � only 2 minutes download on a 56K modem or about 15 seconds on DSL followed by a 2 second really easy install.
    Look here to see where Java ranks against Flash and others :
    http://www.macromedia.com/software/player_census/flashplayer/
    I know Java. I use it for apps and now applets. I get it to communicate with my server's PHP and MySQL. It works well on my machine, but will my applets work for millions of users world wide with few technical problems? Looking through Java forums I see developers struggling with Java Applets in Safari on OSX but not on Windows. Then another has problems with Applets in IE on Windows but not on Netscape. Then one browser struggles with key events . . . it's like a mine field out there and I'm struggling for clear direction.
    Microsoft's support for Java has been poor. If I depend on Java Applets now and for the next year, then will they still be supported 3 or 5 years from now? Or will I have to write off this investment in Java development effort and then switch to something else? Or switch to something else now?
    Does Sun Microsystems somewhere reveal how ubiquitous their JVM deployment is?
    Perhaps I'm totally misinformed, but Java Applets seem to be dying out. I'd really love to hear from other active web developers out there doing stuff for wide deployment to mass markets.

    Since my zwebsite is already using Java 1.1 for 3D visualization I've decided to standardize on Java 1.1 to gain maximum browser compatibility. To add another technology like Flash at this point may just complicate matters, especially for me.
    I'm now converting my Swing GUI to AWT. It wastes a lot of time, but the effort should be worth it in terms of the deployment success rate - in theory at least :-)
    Just imagine if Java 1 had Swing . . . dream on!
    In the deployment stats noted in my first post on this thread they state that Java has 86% world wide desktop deployment. Problem is that I bet that figure only relates to Java1. I wonder what pathetic percentage is true for Java2?
    Regarding the use of Java for content rich dynamic content for world world wide web browser deployment . . . I'm rather disillusioned at this point. It seems for this application Java is stuck indefinitely at Java1 and the cool things they developed after that cannot be used effectively. Please note that I am ONLY referring to wide browser deployment. For stand-alone apps and targeted web deployment (where you can reasonably expect your user to upgrade his/her system for a good reason) Java is still very cool.
    As for Java WebStart: I can see the uses for it, but it just does not fit into the browser application where the general public enter your web pages and see cool content inside the essential context of your webpage. This last point is vital for any serious web site. If the object of the site is to deploy a useful app to the user (like a forex trading front-end with GUI) then use Java WebStart by all means.
    After this website, I'll invest in Flash. I'm sure Flash is not without its share of issues, but it has 97% deployment of nearly the latest versions and user download/upgrade is under 1MB. On top of that it does not seem to suffer from corporate relationship woes like those between Sun and Microsoft.
    After all, Flash is labelled as a 'player' and not a Virtual Machine. Mass users out there want to play rather than know about complex and bulky IT stuff.

  • I don't understand how to sign an applet

    Hi
    could you indicate me how to sign an applet or documentation which deals with this subject...
    Thanx

    I assume that by now your applet is signed and that it can be loaded into the browser and that the Java-plug-in will do something with your applet.
    Look into the Java console after your applet has stopped running. (There is a coffee mug at the lower right corner of the screen).
    For debugging an applet this Java console is quite practical.
    If issued from within an applet, statements like
    System.out.println("Some info for debugging\n");
    will print into the Java console. You can also use that in a catch-part of a try-catch-finally construct:
    try {
        // some method which may raise an exception
    catch( Exception e ) {
        System.out.println(" * ooops * " + e.getMessage() + "\n");
    }

  • How to sign an applet?

    i want to know how to sign an applet and what's root certs?

    Check this URL ..it might help you
    http://developer.java.sun.com/developer/qow/archive/99/index.html

  • How to start java applet with netbeans 6.1

    hey,
    I want to learn how to start java applet (with database) with netbeans.. I'm new to java...can you show me how can i start..if you have any doc about it can you send it to me..thank you..:)

    You really should be asking this NetBeans question at the NB site - these forums are for Java language topics, not NB support.
    [http://www.netbeans.org/kb/61/web/applets.html]
    Almost any NB question you have can be answered by either the NB web documentation or the NB program's Help.

  • How to use Java as a Front-end app

    how java application can be used as the Front-end interfaces to Forte based
    applications???
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Rajiv,
    If you have Forte's WebEnterprise product, and Forte version 3.0.G.x or
    later, you have the ability to export an IIOP interface for any Forte
    service object. In fact, you can go one step further and generate a Java
    interface that "hides" the IIOP issues from the developer. The way you do
    this is to do the following:
    1) From the partitioning workshop, double click on the service object you
    wish to expose as an IIOP interface. This will bring up the Service Object
    Properties dialog.
    2) Off the Export tab, set the External Type drop down to IIOP. If IIOP is
    not an available option in the drop down list then you do not have
    WebEnterprise install.
    3) From here you need to set up the necessary IIOP configuration parameters
    (see the documentation for details on the specifics of what the parameters
    control).
    4) If you want to have Forte generate a JavaBean interface and the necessary
    Java classes to be called by your application then make sure you select the
    Java parameter at the bottom of the Configuration dialog. If IDL is
    selected then Forte will generate a generic IDL interface.
    5) When you make your distribution Forte will generate the Java classes for
    you.
    This mechanism works very well for accessing a Forte service object from a
    Java application.
    Good Luck!
    Jeff Wille
    -----Original Message-----
    From: Rajiv Srivastava <[email protected]>
    To: [email protected] <[email protected]>
    Date: Wednesday, December 09, 1998 2:03 PM
    Subject: how to use Java as a Front-end app
    how java application can be used as the Front-end interfaces to Forte based
    applications???
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Signed java applets not working on lion?

    After downloading java plugin on osx Lion, signed java applets fail to start. This is the error I get in java console, seems like the certificate is not imported to keychain? any workaround?:
    java.lang.reflect.InvocationTargetException
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:1078)
        at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
        at com.koutbo6.gui.swing.GameApplet.init(Unknown Source)
        at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.ja va:1640)
        at java.lang.Thread.run(Thread.java:680)
    Caused by: java.security.AccessControlException: access denied (java.awt.AWTPermission setWindowAlwaysOnTop)
        at java.security.AccessControlContext.checkPermission(AccessControlContext.java:37 4)
        at java.security.AccessController.checkPermission(AccessController.java:546)
        at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
        at java.awt.Window.setAlwaysOnTop(Window.java:2038)
        at com.koutbo6.gui.swing.Q.<init>(Unknown Source)
        at com.koutbo6.gui.swing.GameApplet.a(Unknown Source)
        at com.koutbo6.gui.swing.P.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
        at java.awt.EventQueue.access$000(EventQueue.java:85)
        at java.awt.EventQueue$1.run(EventQueue.java:638)
        at java.awt.EventQueue$1.run(EventQueue.java:636)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlConte xt.java:87)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:29 6)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:20 1)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    All these settings were set as expected, yet im still facing the same problem
    I enabled security debugging and this is the information I got:
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading Root CA certificates from from keychain
    security: Loaded Root CA certificates from from keychain
    security: Validate the certificate chain using CertPath API
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: Obtain certificate collection in Root CA certificate store
    security: jpicertstore.cert.getkeystore
    security: No timestamping info available
    security: Cannot find jurisdiction list file
    security: The CRL support is enabled
    security: KB Programming Analysis and PC Operating Center
    security: ObjectId: 2.5.29.31 Criticality=false
    CRLDistributionPoints [
      [DistributionPoint:
         [URIName: http://crl.thawte.com/ThawteCodeSigningCA.crl]
    security: Thawte Code Signing CA
    security: ObjectId: 2.5.29.31 Criticality=false
    CRLDistributionPoints [
      [DistributionPoint:
         [URIName: http://crl.thawte.com/ThawtePremiumServerCA.crl]
    security: Use CRL setting from certificate
    security: The OCSP support is enabled
    security: KB Programming Analysis and PC Operating Center
    security: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false
    AuthorityInfoAccess [
       accessMethod: 1.3.6.1.5.5.7.48.1
       accessLocation: URIName: http://ocsp.thawte.com]
    security: This certificate does not have AIA extension
    security: Use OCSP setting from certificate
    network: Cache entry not found [url: http://crl.thawte.com/ThawtePremiumServerCA.crl, version: null]
    network: Connecting http://crl.thawte.com/ThawtePremiumServerCA.crl with proxy=DIRECT
    network: Connecting http://crl.thawte.com:80/ with proxy=DIRECT
    network: Downloading resource: http://crl.thawte.com/ThawtePremiumServerCA.crl
              Content-Length: 181,278
              Content-Encoding: null
    network: Wrote URL http://crl.thawte.com/ThawtePremiumServerCA.crl to File /Users/koutbo6/Library/Caches/Java/cache/6.0/38/2fb889a6-30a08967-temp
    network: Connecting http://ocsp.thawte.com/ with proxy=DIRECT
    network: Connecting http://ocsp.thawte.com:80/ with proxy=DIRECT
    network: CleanupThread used 990300 us
    network: Connecting http://ocsp.thawte.com/ with proxy=DIRECT
    network: Connecting http://ocsp.thawte.com:80/ with proxy=DIRECT
    security: This certificate has been revoked
    Ignored exception: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Certificate has been revoked

  • Using external libraries over signed Java applet: InvocationTargetException when running locally with 7u51

    We have a signed Java applet that uses external libraries, specifically the OpenOffice application libraries.
    We have a problem running Java applet with 7u51 of "InvocationTargetException" when use these libraries OpenOffice, that is not signed; regardless of the browser used (Mozilla Firefox, Explorer, Chrome).
    Please, as you could solve this problem?   This problem can not arose with 7u40 and earlier..
    Best regards.

    In  java - JRE 1.7.0_51-b13 and signed applet - Stack Overflow found solution. I've missed to add in external jars manifest this: 
    Trusted-Library: true

  • How to sign the applet with verisign certificate?

    Hi,
    I got a test certificate from the Verisign.
    Now I want to know, how to sign my applet with that certificate?
    Thanks,
    Siva E.

    Hi!
    You have to create a keystore wich contains the certificate. I think you call keystore -import "verisign.cert"Try the command, and it will tell you what it needs.
    To do the acutal signing of an applet (jar-file), you write somehting like this:
    jarsigner  -keystore "NameOfKeystore" -keypass "PasswordToPrivKey"  -storepass "PasswordToStore" "YourJarFile.jar" "CertAlias"The cert alias is an alias you created when importing the certificate. Hope it Helps!
    Henrik

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • How many workbooks have been visited by end users per day

    Hi SDN's,
    How many workbooks have been visited by end user per day.Is there any process to knew... Do we have any T-Codes to knew...
    Thanks & Regardz,
    Aluri

    nope... unless you're in 7.0
    the statistics before 7.0 only check queries... workaround would be to have a report on BW statistics filtering on the queries that are in your workbooks... that might give you an "idea", but if there people who run those queries outside of the workbook, it will "affect" your "statistics"

  • How many workbooks have been visited by end user per day

    <i><b>  Hi SDN's,</b></i>
    How many workbooks have been visited by end user per day.Is there any process to knew...
    <i><b>Thanks & Regardz,
    Aluri</b></i>

    Hi Aluri,
    Statistics are usually not available on workbooks. You can find out how many time a user calls up a particular query (which can be accessed by various workbooks). Because workbooks themseleves do not call up data from the infoproviders.
    You can tell how many times a user has accessed a query by looking at the Statistical queries and objects. Try the following two there is a list of other queries in help that you can go through also:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/84353cf261303de10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/68/84353cf261303de10000000a11402f/frameset.htm

  • I can't run signed Java Applets

    HI
    I have a java applet where I need to have acces to a local file, but I can't get IE to run the applet. (IE do not come with the Secutiy Warning window.)
    From the homepage, I run the applet via:
    <applet name=read_file code="read_file.class" width="0" height="0">
    <script language="JavaScript">
    document.read_file.file_read();
    </script>
    And the java code is:
    import java.applet.*;
    import java.awt.*;
    import java.io.*;
    public class read_file extends Applet{
         public char[][] ip;
         public int counter;
         public String te="dette er en java test";
    public void init() {
    public void file_read() {
         String str;
         counter =0;
         try {     
         BufferedReader in = new BufferedReader(new FileReader("c:\test\config.txt"));
              while ((str = in.readLine()) != null){
                   ip[counter] = str.toCharArray();
                   counter++;
              in.close();
         } catch(IOException e) {
    public void test() {
    I have signed the cab file with:
    "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\signcode.exe" -j "C:\Program Files\Microsoft.NET\SDK\v1.1\Bin\JAVASIGN.DLL" -jp High -v hjl.pvk -spc hjl.spc -n "oil" -i "www.vedikke endnu-.dk" "C:\Documents and Settings\rbn\Desktop\UIp\hjemmeside\read_file.cab"
    and maket the cab fil with:
    "C:\Documents and Settings\rbn\Desktop\UIp\cab\BIN\MAKECAB.EXE" "C:\Documents and Settings\rbn\Desktop\UIp\java\read_file.class" "C:\Documents and Settings\rbn\Desktop\UIp\hjemmeside\read_file.cab"
    What do I need to different ?

    I see no reason why you want to make this applet for the msjvm, here is how you do it with the sun sdk:
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore
    (my copy and paste fingers are really getting tired now, copyd and pasted this
    for about a 100 times now)
    Notice some differences in the html code of the examples (they don't use the applet tag)
    If you're aiming for the msjvm because you don't want any support form MS in
    the near future and want to delever a legacy unsupported unmaintainable applet
    than I have to ask you how you compiled the applet. If you used the SUN sdk
    then are you aware that the msjvm cannot handle java version higher than 1.1?
    So you have to compile it like this: javac -source 1.3 -target 1.1 ....
    Your html file seems to be missng the cabbase value so how do you expect
    IE to find the cab file?

  • How to sign in Applet?

    Hello,
    How to sign in the Applet? I have try many way to do this but still not successfull.
    I need a webpage that really have the step by step instructions. thanks a lot. ( sorry for saying that, because I really tired to follow those instruction that not complete or confusing )
    What is the certificate? where can I get this? Is it keystore = certificate?
    Do I need to connect to the Internet when I signing up my Applet?
    Why sign in Applet?
    Thanks.

    see if helps,
    http://forum.java.sun.com/thread.jsp?forum=54&thread=103843

Maybe you are looking for

  • Video Chat ended with error -8 and sign off

    Hey everyone, hope you're all doing well. I'm sorry if this comes out as a nuisance to people seeing as there are 234234234 people with the same sort of problem. I tried searching, but unfortunately nothing came up. So here's my problem/story. I'm co

  • Upgrading leaves the old version installed. Why and can I get rid of it?

    I had SQL Server 2008 R2 installed on a Win7 box, and upgraded it to SQL Server 2014. All seems to have gone well, but in the programs menu I can see that SSMS 2008 R2 is still installed. For some reason, I seem to have SQL Server 2012 installed as w

  • Formatting a field before committing from editable datagrid

    Hi, I have an editable DataGrid which displays two columns, date and value. Now, the date in the dataProvider is actually stored as an integer (yyyymmdd) so I format it using a labelFunction to display. I then have a custom itemEditor to set it to a

  • Changing Photo order?

    Hi folks, Right now, the photo application displays all of my pictures for oldest to newest, so in order to see the most recent pictures, I have to scroll all the way to the bottom. That leads to two questions: 1)How can I reorder the pictures so tha

  • Droid Pro not working after yesterday's system software update

    I downloaded it last night and now my Outlook exchange mail account shows no messages. I can send an email from my Droid Pro Outlook account but it does not receive any. Checked with corporate IT and there were no changes overnight to our corporate e