How to load an applet with older version of JRE?

Hi All,
I'm writing an applet which should read the username from the user's system using System.getProperty("user.name") method. I've JRE 1.4.2 in my browser, and it's throwing a AccessControlException whenever the applet is trying to read the "user.name" system property. So, I want to load this particular applet with an older version of JRE, say JRE 1.3. I've tried various approaches like,
<jsp:plugin type="applet" code="LoginApplet.class" archive="login.jar"
     jreversion="1.3"     iepluginurl="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
</jsp:plugin>
and also tried OBJECT tag,
<OBJECT
classid="clsid:CAFEEFAC-0013-0000-0000-ABCDEFFEDCBA" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0"
     width="200" height="200" align="baseline" >
<PARAM NAME="code" VALUE="LoginApplet.class">
<PARAM NAME="archive" VALUE="login.jar">
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="true">
No Java 2 SDK, Standard Edition v 1.3 support for APPLET!!
</OBJECT>
I've not tried the simple APPLET tag because we can't specify a java plugin using the APPLET tag.
In both the above methods, I'm still getting AccessControlException. In Java console, I'm seeing Java Plugin as 1.4.2.
Can someone tell me is it possible to read the "user.name" system property from user's machine using Applets? If yes, how?
Thanks,
Tarun.

Applets are prevented from doing certain things - reading data is one - to maximize security. You can either add permissions to the computer that the applet is running on, or you can sign the applet.
See
http://java.sun.com/docs/books/tutorial/security1.2/tour1/step2.html
and
http://forum.java.sun.com/thread.jspa?threadID=686184&tstart=45

Similar Messages

  • Can't run my app with older version of jre anymore.  Help!

    Java Web Start is supposed to allow applications to use older versions of Java JRE. My applet uses 1.6.0_31 because it doesn't work with 1.7. (Backward compatibility? Don't ask.)
    When I first set it up a couple of weeks ago, it worked. Now, with JRE 1.7 officially released it does not. When I try to run it, I get the following message:
    "This application would like to use an older version of Java (1.6.0_31) that is not installed on your system. We recommend running the application with the latest version o java on your computer. Then there are two buttons.
    One button says "Run with latest version". The other button says "Cancel". When I click on "Cancel" the application fails with the following
    basic: LaunchDesc location: http://relativitysimulation.com/Applet.jnlp
    network: Created version ID: 1.6.0.31
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7
    network: Created version ID: 1.6.0.31
    network: Created version ID: 1.6
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7
    network: Created version ID: 1.6.0.31
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7.0.03
    network: Created version ID: 1.7
    java.util.MissingResourceException: Can't find resource for bundle sun.applet.resources.MsgAppletViewer, key appletpanel.ExitException[ 0]
         at java.util.ResourceBundle.getObject(ResourceBundle.java:393)
         at java.util.ResourceBundle.getString(ResourceBundle.java:353)
         at sun.plugin2.applet.Applet2MessageHandler.getMessage(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager.logAppletStatus(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    basic: ExitException[ 0]
    ExitException[ 0]
         at com.sun.javaws.ui.SecureStaticVersioning.showCannotDownloadDialog(Unknown Source)
         at com.sun.javaws.ui.SecureStaticVersioning.canAutoDownload(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager$JnlpLaunchState.doJvmSelection(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
         at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)
    security: Accessing keys and certificate in Mozilla user profile: null
    security: Reset deny session certificate store
    Looks to me like Cancel does not mean "Run Older Version". While I am debugging why I can't use the latest version of jre, can someone please tell me how to use the older version?
    Edited by: 932841 on May 8, 2012 8:54 AM - corrected typo

    I'm the developer. And thank you for your prompt response. I have been given a work around so that the applet can use version 1.7. But that still doesn't explain what I am doing that makes Java fail to use the older version.
    I put this code in my jnlp file on March 27th when I realized that my app didn't work with version 1.7. I tested it at that time and it worked. In the process I installed and uninstalled java 1.6.0_31 ( and 1.7) several times. Maybe something important got corrupted then.
    <resources>
         <j2se version="1.6.0_31" href="http://java.sun.com/products/autodl/j2se"/>
    Added this -----
    Oh, if someone else wants to try this app on their machine, feel free. It is at
    http://www.relativitysimulation.com/Applet.html
    Edited by: 932841 on May 8, 2012 11:13 AM

  • How to load an applet with 2 classes and get it to display properly

    Ok I am a very newbie as you can tell by code below but I need help duh. I am a student taking a Java course on my own (ie no marks) so I know what I am doing in a second level java courseI am not sure if my problem is with "Forte for Java 4, CE" or my code. I have two files. Door.java and Exercise4a.java
    The code is as follows:
    Door.java
    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Door extends java.applet.Applet {
    /** Creates a new instance of Door */
    int x;
    int y;
    public void init() {
    Graphics b;
    public Door(Point aPoint)
    x = (int)aPoint.getX();
    y = (int)aPoint.getY();
    public void paint(Graphics graphics)
    graphics.drawRect(0 + x ,0 + y, 20,30);
    graphics.setColor(Color.black);
    graphics.fillOval(15 + x,15 + y ,5,5);
    graphics.drawImage(buffer,0,0,this);
    public static void main(String args[]){}
    and Exercise4a.java
    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Exercise4a extends java.applet.Applet {
    Graphics b;
    public void init() {
    Point a = new Point(0,0);
    Door door = new Door(a);
    My problem is that I do not see my door when I compile either file.
    What am I doing wrong? Is this acode problem. ie how do I load the graphics or is it that I am not compiling it correctly.

    package Exercise4.Exercise4a;
    import java.awt.*;
    import java.applet.*;
    public class Exercise4a extends java.applet.Applet {
    Graphics b;
    public void init() {
    Point a = new Point(0,0);
    Door door = new Door(a);// door.paint (b)

  • How do I select a playlist to copy onto my devices?  On the older version, I could click on each list, then check "sync only checked playlists" and I'd have different playlists on different devices.  How do I do it with this version?  Thank you!

    How in 12.1.0.50 can I select a playlist to copy onto my devices from my iMac?  On the older version, I could click on each list, then check "sync only checked playlists" and I'd have different playlists on different devices (iPhone 6, iPod nano).  How do I do it with this version?  Thank you!

    Same way.
    Select the device, click Music tab and select the playlists to sync.

  • How to load an Applet application for 1000cards?

    Hi Friends..
    I want to know How to load an Applet application for 1000cards?..
    Assume that, i have an Applet application that need to loaded into 1000cards..
    So, how to solve this?
    Do i must to load an application manually for each card?
    Is there any another way?
    Thanks in advance..

    for 1000 cards you can use a "small" printer like an evolis "dualis" or something like that
    we've produced thousands of cards with this method in my company.
    the pro is that you can also print the cards in the same time.
    they usually have simple APIS like get_new_card_from_loader(), put_card_on_contacts(), eject_card()
    you can connect any reader on the printer , the raw card contacts are available on a connector.
    some printers also have contactless couplers.
    but remember that deploying cards in the field is not just loading an applet.
    it's also a cryptographic challenge, you need to change the card keys or anyone will be able to play with your cards, adding and removing applets as they want.
    typically this is achieved by using an ultra secret mother key and whatever derivation algorithm you like using data from INIT UPDATE as diversifier. example, you can TDES cipher part of the INIT UPDATE data using the mother key as TDES key, or use something involving SHA1, using a HSM if you are serious, etc.
    for your entertainment here is a high volume card personnalization machine. That's amazing.
    http://www.youtube.com/watch?v=6ZBF_yKRF5w

  • Trying to update to 4.0 on my Mac. When trying to drag new icon to applications folder, it says 4.o already in place (it isn't), nad do I want to relace with older version. I do this and then it says change can't be done because Firefox is in use. ??

    trying to update to 4.0 on my Mac. When trying to drag new icon to applications folder, it says 4.o already in place (it isn't), and do I want to replace with older version. I do this and then it says change can't be done because Firefox is in use. ??

    That version cannot be upgraded further if it's a 2G model. The 3G model can be upgraded to iOS 5.x.x. You can't have a 2G model because the maximum iOS version is 4.2.1.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • How to load an applet in card?

    Hi everyone,
    I use NetBeans and its JavaCard Simulator, protocol T = 0, and I am wandering how to load an applet using APDU tool instead of clicking on Run Projetc which do the mentioned thing. It would be helpfull if someone post ouptut and explain all used apdu commands.
    Thanks,
    Mare.

    Here is the APDU trace:
    Select Card Manager
    => 00 A4 04 00 08 A0 00 00 00 03 00 00 00 00
    <= 6F 10 84 08 A0 00 00 00 03 00 00 00 A5 04 9F 65
        01 FF 90 00
    Authenticate
    cm>  init-update 255
    => 80 50 00 00 08 09 41 55 62 DF F5 61 2B 00
    <= 00 00 C6 D8 6A 1C B2 02 14 13 FF 02 00 00 93 73
        3A B8 2C 0F 8E A4 1D EF 84 60 77 12 90 00
    cm>  ext-auth plain
    => 84 82 00 00 10 B5 AA A8 E6 8B 73 57 F9 5D 37 6C
        D1 FE CF 56 32
    <= 90 00
    Install For Load
    => 80 E6 02 00 12 05 11 11 11 11 11 08 A0 00 00 00
        03 00 00 00 00 00 00 00
    <= 00 90 00
    Load Block 1
    => 80 E8 00 00 FF C4 82 01 65 01 00 1A DE CA FF ED
        02 02 04 00 01 05 11 11 11 11 11 0A 68 65 6C 6C
        6F 57 6F 72 6C 64 02 00 21 00 1A 00 21 00 0A 00
        0B 00 2A 00 0E 00 A1 00 0A 00 17 00 00 00 5A 02
        5A 00 00 00 00 00 00 01 01 00 04 00 0B 01 02 01
        07 A0 00 00 00 62 01 01 03 00 0A 01 06 11 11 11
        11 11 11 00 08 06 00 0E 00 00 00 80 03 00 FF 00
        07 01 00 00 00 1C 07 00 A1 00 01 10 18 8C 00 04
        7A 05 30 8F 00 09 3D 8C 00 02 18 1D 04 41 18 1D
        25 8B 00 03 7A 04 22 18 8B 00 07 60 03 7A 19 8B
        00 06 2D 1A 04 25 75 00 6D 00 06 00 00 00 1D 00
        01 00 2C 00 02 00 3B 00 40 00 4A 00 41 00 57 00
        42 00 62 19 8B 00 05 3B 19 03 1A 07 25 8B 00 08
        70 49 19 8B 00 05 3B 19 03 1A 07 25 8B 00 08 70
        3A 19 8B 00 05 3B 19 03 1A 07 25 8B 00 08 70 2B
        03 32 04 8D 00 00 32 1F 8D 00 01 70 1E 05 8D 00
        00 32 1F 8D 00
    <= 00 90 00
    Load other Blocks with  80 E8 00 xx ... which xx is the Block number
    Load Last Block
    => 80 E8 80 01 6A 00 01 70 13 03 8D 00 00 32 1F 8D
        00 01 70 08 11 6D 00 8D 00 01 7A 08 00 0A 00 00
        00 00 00 00 00 00 00 00 05 00 2A 00 0A 06 80 08
        10 06 80 07 01 06 00 00 01 03 80 03 02 06 80 03
        00 03 80 0A 06 03 80 0A 01 03 80 03 03 03 80 0A
        08 01 00 02 00 09 00 17 00 00 00 13 05 06 04 0A
        07 07 25 09 06 09 06 09 08 05 06 05 06 05 08 00
    <= 00 90 00
    Install For Install
    cm>  install -i 111111111111  -q C9#() 1111111111 111111111111
    => 80 E6 0C 00 1A 05 11 11 11 11 11 06 11 11 11 11
        11 11 06 11 11 11 11 11 11 01 00 02 C9 00 00 00
    <= 90 00Note that if you want to use APDU manually, you should do the authenticate process and loading all blocks of the CAP file yourself.
    Note that this is the APDU for a real card that is executed in JCOP Environment. I think it should work for the simulators too except the authentication commands.

  • How to use track effects with new version of GarageBand

    In the version of GarageBand before this one, you could access different effects that you could manage and apply to the different tracks.  Each track had an area containing its set of effects that were either activated or deactivated.  With this removed, i am not sure how to add those same kind of effects.  I am aware of the new nobs that are provided in order to mix and edit trebles, bass, mid, etc., but i want to be able to add different effects such as voice transformer, flanger, chorus, speech enhancer, bit crusher, bass amp, track echo, track reverb, amplifier, etc.  I desperately need help finding out how to do this, as this was a major part of my mixing and producing with GarageBand, and without these given effects, i do not feel as comfortable using GarageBand.

    zachseiden wrote:
    How to use track effects with new version of GarageBand
    this may help:
    http://www.bulletsandbones.com/GB/GBFAQ.html#replacemissingtrackeffectsgbv10
    This FAQ entry offers a Minute GarageBand video tutorial
    (Let the page FULLY load. The link to your answer is at the top of your screen)

  • I can't open 3 documents because trial upgrade to version 5 of pages happened. I don't want to pay $20 to get upgrade. How do I open docs in older version. They were created in older version.

    I can't open 3 documents because trial upgrade to version 5 of pages happened. I don't want to pay $20 to get upgrade. I don't recall fine print stating money would be needed. How do I open docs in older version? They were created in older version.

    Hi MBilyeu,
    Thanks for visiting Apple Support Communities.
    You can use these steps to open your Pages documents with the previous version:
    Permanently change the document’s app
    Select the document and choose File > Get Info.
    In the Info window, click the triangle next to “Open with” to expand the section.
    Choose an app from the pop-up menu, or choose Other to locate a different app.
    If you want to use that app to open all documents of the same type as the current document and created by the same app, click Change All.
    Temporarily change the document’s app
    You can open a document in a different app without changing the app that normally opens it. Use either of these methods:
    Control-click the document, choose Open With, and then choose the app you want to use.
    Drag the document to the app’s icon in the Dock or in the Finder.
    From:
    OS X Mountain Lion: Choose an app to open a document
    http://support.apple.com/kb/PH11329
    Regards,
    Jeremy

  • 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 to write a applet with multiple menu

    Hi all,
    How to write a applet with multiple menu or please tell me where can I get a examples
    thanks

    i'm writing a project and it seem not work with browser. If anyone can help please leave me a e-mail so that i can send my source to you.
    Thanks so much

  • I can't use Yahoo messenger (it doesn't open the dialogue window), but in other PCs with older versions of Firefox I don't have problems

    I can't use Yahoo messenger (it doesn't open the dialogue window), but in other PCs with older versions of Firefox I don't have problems
    As stated earlier even though when I have an incoming message I hear the "Beep" Firefox does not open the dialogue window as it used to do.
    Also I am not able to open a new dialogue window or tab by clicking on an online contact of mine.

    Known issue, See:
    * https://bugzilla.mozilla.org/show_bug.cgi?id=713014
    this issue maybe fixed in beta/ nightly, you should try it
    * firefox.com/beta

  • 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.

  • Files Created in Photoshop CC Not Compatable With Older Versions of Photoshop?

    I have heard that the new Photoshop CC uses a new file system that is not compatible with older versions of Photoshop so you can only edit them in the new Cloud version of Photoshop CC.  Is this true?

    i opened a fine in PSCS 13.1.2.I edited it a bit, converted a layer to a SO and used liquify on that layer.
    I saved it as a tiff. Did not try it as a psd.
    PSCS5 opened the tiff without complaint, including the SO+liquified layer. When i clicked on the liquify at bottom of the SO layer to try to edit it I got the notice "CANNOT FIND THE FILE", or something like that.
    So, I guess pscs5 is already done for.
    vince

  • Unable to upload a music album to music library. i was able to upload with older version of iTunes.

    unable to upload a music album to music library. i was able to upload with older version of iTunes. with the latest update this issue started happening

    You're probably trying to purchase iTunes Plus songs - which, yes, will require an updated version of iTunes to purchase. To play them, however, you won't need to update iTunes. This, like you said, will force you to purchase them on another computer and then transfer.
    More info on iTunes Plus:
    iTunes Store: iTunes Plus Frequently Asked Questions (FAQ)
    http://docs.info.apple.com/article.html?artnum=305567

Maybe you are looking for