Sunpkcs11 in applet   force browser to use 32 bit jre

I  am using sunpkcs11 in my applet for reading smartcard,sunpkcs11.jar is only available  in 32 bit jvm , so if a borwser has latest jdk and it has 64 bit version then my applet will fail  , please advice  are there any parameters in applet which will force borwser to download 32 bit version jre for running my applet?

Thanks Andrew Thompson for your reply.
The problem is, the end-user will have both 32-bit and 64-bit JREs. They need 32-bit JRE for other applications and our application has to use 64-bit JRE. The target of desktop shortcut (created during installation of application) points to “C:\Windows\SysWOW64\javaws.exe”. If this target is changed to “C:\Windows\System32\javaws.exe”, the application use 64-JRE . The target can be manually changed by right click desktop shortcut icon-> Properties->select Shortcut tab and change the target.
Is there any way to change this target of desktop shortcut programmatically while installing the application?
Regards,
Kamal.

Similar Messages

  • Does VSearch force browser to use Yahoo search engine?

    though i licked the problem by doing a clean install of Yosemite, is VSearch responsible for forcing my browsers to use Yahoo as the search engine? I use Chrome primarily, and even when i set preference to Google and deleted Yahoo as a search engine option, any search i did was coming up Yahoo...
    just curious

    I don't know the answer to your specific question as to whether VSearch is forcing your browsers to use Yahoo, but VSearch is adware and there is a very useful app that will remove all adware without the need to do a clean install. Take a look at this from the Safe Mac and check out their software AdwareMedic: http://www.adwaremedic.com/index.php

  • Wrong default button in alerts when using 64-bit JRE on Windows

    Hi guys,
    I'm facing a strange problem.
    My environment:
    Server:
    OAS 10.1.2.2.0 on Linux Suse (32-bit)
    Client:
    IE8 64-bit on Windows XP 64-bit and Java 1.6.0_18 also 64-bit
    When I run a form that opens an alert-window with a default-button (button that has the focus), it sometimes happens, that not the default-button, but another button is activated by default.
    I have to repeat:
    It only happens sometimes and is hard to reproduce. Within 50 attempts it may happen 5 times or just 1 time.
    I never saw that happening with 32-bit JVM.
    Anyone else seeing this?
    br
    Michael

    Ok... here is what I see:
    1. Create a form with an alert and set button 2 as the default
    2. Run the form and display the alert. Button 2 has focus (proven by the bold solid line (shadow) and dotted line that surround the button)
    3. Open any other app (Notepad, Explorer, etc) and move focus to that app
    4. Slide this other app out of the way so that you can see the running form under it.
    5. While the other app has current focus, the buttons on the form's alert appear to lose focus (this is expected). However, now button 1 has a bold line (shadow) surrounding it. This gives the appearance that button 1 has focus.
    6. Click on the alert box to move focus back to the form. Do not click on the alert buttons.
    7. Focus lines are now redrawn on the correct button (button 2).
    This is probably not the best behavior, but certainly not something that I would call an area of concern. If what I described here is what you are seeing and you feel that this is a significant issue, I would recommend filing a Service Request with Support (assuming you have a support contract) and request that a bug/defect is filed. You will need to provide a test case and I would recommend that you provide screen shots or a video of what you are seeing. If you have not already applied all the previously mentioned patches, I would not recommend contacting Support until you do so, as this will be the first thing they require you completed anyway.

  • How to switch between jre 1.5.0 and 1.4.2 when running applet in browser?

    Hi,
    I have JRE 1.5.0_05 and 1.4.2_04 installed and currently applet in browser is always run under jre 1.5. How to run the applet under jre 1.4.2 in browser?
    Thanks a lot

    Hi,
    Thanks for the info. I was thinking that the note didn't work for me, apparently I didn't use the conventional APPLET tag.
    Is there other way to switch JRE if I'm not using APPLET tag?

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

  • Problem in display file in java applet embeded browser

    hi, i am facing problem to display the file from local drive in java applet embeded browser. here is the error message i get:
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i think it should be the java security problem and i have try to get the solution from internet. i try to solve by using the fllowing method:
    keytool -genkey -keyalg rsa -alias yourkey
    keytool -export -alias yourkey -file yourcert.crt
    javac yourapplet.java
    jar cvf yourapplet.jar yourapplet.class
    jarsigner yourapplet.jar yourkey
    but the command prompt ask me to enter the keystore password. i try to enter any password. but i show me the error:
    keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect.
    So may i know what is the problem actually?Thanks a lot.

    Hi,
    here is the sample coding :
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    import com.sun.j3d.utils.geometry.ColorCube;
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.behaviors.mouse.MouseRotate;
    import com.sun.j3d.utils.behaviors.mouse.MouseZoom;
    import com.sun.j3d.utils.behaviors.mouse.MouseTranslate;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import java.net.URL;
    import java.net.MalformedURLException;
    import org.web3d.j3d.loaders.VRML97Loader;
    import com.sun.j3d.loaders.Scene;
    public class SimpleVrml extends Applet implements ActionListener {
    String           location;
    String           initLocation;
    Canvas3D     canvas;
    SimpleUniverse     universe;
    TransformGroup     vpTransGroup;
    VRML97Loader     loader;
    View          view;
    Panel          panel;
    Label          label;
    BranchGroup     sceneRoot;
    TransformGroup     examineGroup;
    BranchGroup     sceneGroup;
    BoundingSphere     sceneBounds;
    DirectionalLight     headLight;
    AmbientLight     ambLight;
    TextField      textField;
    Cursor          waitCursor;
    Cursor          handCursor;
    public SimpleVrml() {
    initLocation="cylinder.wrl";     
         setLayout(new BorderLayout());
         GraphicsConfiguration config =SimpleUniverse.getPreferredConfiguration();     
         setLayout(new BorderLayout());
         canvas = new Canvas3D(config);
         add("Center",canvas);
         panel = new Panel();
         panel.setLayout(new FlowLayout(FlowLayout.LEFT));
         textField = new TextField(initLocation,60);     
         textField.addActionListener(this);
         label = new Label("Location:");
         panel.add(label);
         panel.add(textField);
         add("North",panel);
         waitCursor = new Cursor(Cursor.WAIT_CURSOR);
         handCursor = new Cursor(Cursor.HAND_CURSOR);
         universe = new SimpleUniverse(canvas);
         ViewingPlatform viewingPlatform = universe.getViewingPlatform();
         vpTransGroup = viewingPlatform.getViewPlatformTransform();
         Viewer viewer = universe.getViewer();
         view = viewer.getView();
         setupBehavior();
         loader = new VRML97Loader();
         gotoLocation(initLocation);
    public void actionPerformed(ActionEvent ae) {
         gotoLocation(textField.getText());
    void gotoLocation(String location) {
         canvas.setCursor(waitCursor);
         if (sceneGroup != null) {
         sceneGroup.detach();
         Scene scene = null;
         try {
         URL loadUrl = new URL(location);
         try {
              // load the scene
              scene = loader.load(new URL(location));
         } catch (Exception e) {
              System.out.println("Exception loading URL:" + e);
         } catch (MalformedURLException badUrl) {
         // location may be a path name     
         try {
              // load the scene
              scene = loader.load(location);
         } catch (Exception e) {
              System.out.println("Exception loading file from path:" + e);
         if (scene != null) {
         // get the scene group
         sceneGroup = scene.getSceneGroup();
         sceneGroup.setCapability(BranchGroup.ALLOW_DETACH);
         sceneGroup.setCapability(BranchGroup.ALLOW_BOUNDS_READ);
         // add the scene group to the scene
         examineGroup.addChild(sceneGroup);
         // now that the scene group is "live" we can inquire the bounds
         sceneBounds = (BoundingSphere)sceneGroup.getBounds();
         // set up a viewpoint to include the bounds
         setViewpoint();
         canvas.setCursor(handCursor);
    void setViewpoint() {
         Transform3D viewTrans = new Transform3D();
         Transform3D eyeTrans = new Transform3D();
         // point the view at the center of the object
         Point3d center = new Point3d();
         sceneBounds.getCenter(center);
         double radius = sceneBounds.getRadius();
         Vector3d temp = new Vector3d(center);
         viewTrans.set(temp);
         // pull the eye back far enough to see the whole object
         double eyeDist = 1.4*radius / Math.tan(view.getFieldOfView() / 2.0);
         temp.x = 0.0;
         temp.y = 0.0;
         temp.z = eyeDist;
         eyeTrans.set(temp);
         viewTrans.mul(eyeTrans);
         // set the view transform
         vpTransGroup.setTransform(viewTrans);
    private void setupBehavior() {
         sceneRoot = new BranchGroup();
         examineGroup = new TransformGroup();
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
         examineGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
         sceneRoot.addChild(examineGroup);
         BoundingSphere behaviorBounds = new BoundingSphere(new Point3d(),
              Double.MAX_VALUE);
         MouseRotate mr = new MouseRotate();
         mr.setTransformGroup(examineGroup);
         mr.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mr);
         MouseTranslate mt = new MouseTranslate();
         mt.setTransformGroup(examineGroup);
         mt.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mt);
         MouseZoom mz = new MouseZoom();
         mz.setTransformGroup(examineGroup);
         mz.setSchedulingBounds(behaviorBounds);
         sceneRoot.addChild(mz);
         BoundingSphere lightBounds =
         new BoundingSphere(new Point3d(), Double.MAX_VALUE);
    ambLight = new AmbientLight(true, new Color3f(1.0f, 1.0f, 1.0f));
    ambLight.setInfluencingBounds(lightBounds);
    ambLight.setCapability(Light.ALLOW_STATE_WRITE);
    sceneRoot.addChild(ambLight);
    headLight = new DirectionalLight();
    headLight.setCapability(Light.ALLOW_STATE_WRITE);
    headLight.setInfluencingBounds(lightBounds);
    sceneRoot.addChild(headLight);
         universe.addBranchGraph(sceneRoot);
    public static void main(String[] args) {
    new MainFrame(new SimpleVrml(), 780, 780);
    cylinder.wrl :
    #VRML V2.0 utf8
    # A cylinder
    Shape {
    appearance Appearance {
    material Material { }
    geometry Cylinder {
    height 2.0
    radius 1.5
    view.html:
    <html>
    <applet code="SimpleVrml.class" width=600 height=600>
    </applet>
    </html>
    error msg that i get :
    Exception loading file from path:java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    i can display the wrl file in applet itself but i can't display in the browser.is it any problem with my code?Urgent, please help me. Thanks.

  • Applet client with DataForms using dial-up

    Jdeveloper 3.2, IAS9i
    Hello,
    Somebody knows if the DataForms are efficient via dial-up?
    For example in the Online Orders sample,with an applet client (with DataForms, using dialup to connect to app. server). What happens when an user insert a new employee record. When an user navigate around the fields ocurrs a validation inside the Business Object Tier. What happens with the remote round trips?, It's faster?.
    Jdeveloper 3.2.2
    IAS9i
    Thanks a lot.
    null

    Any application designed to run over a dial -up connection must be extremely sensitive to the fact that dial-up connection is very slow due to it's bandwidth.
    Applets by default require downloading a lot of files to the browser. So you must download your app code, the jdbc drivers and any other required classses.
    Applets using BC4J components then must also download the BC4J code. BC4J uses a data cache, so data is also downloaded.
    Avoid using applets in this design.
    Use JavaServerPages(JSP's) (or servlets) which are a much "thinner" version of the "Thin client" group of tools(applets, servlets jsp's)
    WHY JSP's over servlets ??
    They are quicker to write than servlets

  • Java plugin hangs when communicating to browser scripts (Using JSObject)

    I saw several questions in the forum regarding the Java plug-in 1.3.1, however I would like to post this as separately since I want your attention to this, ASAP.
    The problem is this, when I run Java Swing Applet using IE 5.0 with the Java plug-in 1.3.1 communication from Applet to browser hangs. (This is by using the JSObject shipped with the IE5). I communicate with the browser using Java Script functions calling from the applet to the browser. For example
    win.call("Func_to_call",Value); But the same code is working when compiled and run under Java plug-in and JRE for version 1.3.0.
    Please help. I think the problem may be with the JSObject that I use (May be incompatible with the JRE or plug-in of 1.3.1), can you please suggest a solution or give me a URL to find the latest JSObject for the plug-in 1.3.1.
    Thanks in advance
    Nuuwi

    oops... forgot to say what is this 'win'
    'win' is the windows object taken as
    win = JSObject.getWindow(this); [\code]
    thanx                                                                                                                                                                                                                                                                               

  • In Applets, unable to type in TextFields if JRE 1.4 is selected in browser

    In Applets, unable to type in TextFields if JRE 1.4 is selected in browser (IE and Netscape), mouse events are functioning normally.
    I was able to select CheckBoxes, set the focus from one TF to another TF, but unable to type into it.
    Java Console shows: Java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThread)
    It works fine if JRE 1.3 or MS VM is selected.
    p.s. Applet code is compiled using jsdk 1.3
    I will appreciate any kind of help or advice !
    Thx,
    :MJ

    Hi,
    I have the same problem.
    Would appreciate some help here also.
    thanks!

  • Browser Selection using Javascript

    Hi All,
    I am using a multi select ibrowser for a query data set.I am calling a function on selection of that item on browser. But on page load I need to take default as first row of that browser and need to call the function related to that. But i am willing to keep that row showing as selected on browser. Is there anyway i can do that using javascript....?
    There is one more button on the same screen which says 'Show for next Row' like that sort. On clicking that button I need to unselect the earlier one and need to select the next row of that browser and call the same browser select function.
    I didn't get any applet method for selecting a browser row using javascript.
    Any ideas will be appreciated....
    Regards,
    Satish

    Hi Satish,
    You can use this method to display an item by default as the ist row of ibrowser on page load .
    document.Appletname.getBrowserObject().setDefaultItem(variable_name);
    To select next row of an ibrowser after click 'Show for next Row' button, you can use this method:
    var vVariable = document.Appletname.getBrowserObject().getItemAt(int itemNo);
    document.Appletname.getBrowserObject().setDefaultItem(vVariable );
    Just try this out.This may work.

  • Cannot invoke Applet on browser...HELP!

    I cannot invoke Applet on browser however I can invoke the applet on appletviewer.
    Anyone that can help me?
    Thanks.

    youre gonna have some major headaches if your applet uses the swing package..
    IE's support for it is so flaky its not even funny
    If youre using awt then you really shouldnt have a problem viewing in a browser..
    just add this to your HTML code and you should be set
    <applet> code = "yourapplet.class" width = somenumber height = somenumber </applet>

  • Applet within browser not releasing file resource

    hi,
    I have an applet for ftp images upload.
    run from eclipse IDE (which uses applet viewer) the applet is ok.
    if i run my applet from browser here is what happens:
    i upload a file .& leave the browser opened.
    i then open this same file with gimp or photo-shop & get file in use error.
    if i close browser & try opening file .it works ok.
    why the file isn't released when applet instance still on browser ?
    is there a fix to this issue ?
    thanks for helping .

    thanks for prompt reply.
    yes i close all streams...
    the core method i use to upload files is below (client is a FTPClient object)
    private synchronized void putFile(File file, String remoteFile)
                   throws FileUploadException {
              String sFile = null;
              try {
                   sFile = r.chomp(remoteFile, '/');
                   client.put(file.getAbsolutePath(), sFile + file.getName());
                   r.numBytes += file.length();
              } catch (Exception e) {
                   //e.printStackTrace();
                   try {
                        retry(file, sFile);
                   } catch (Exception e1) {
                        throw new FileUploadException(e1.getMessage());
         }what am i doing wrong ?

  • Cannot open applets from my computer using IE 6

    hello,
    i have a problem when i try to open an applet from my computer using HTML file for it
    <applet code="x.class" width=600 height=600 HSPACE =50 VSPACE=100>
    Applet not displayed - requires a Java enabled browser
    </applet>The only thing that appears to my in my IE browser is a gray window.
    now i have checked and the path are correct (the html and the class file in the same directory)
    the problem Occurred only when I try to open class file from my computer, I dont have problems to open them from the web (if for example i enter some site with an applet).
    I have a WIN98 SE, IE 6
    thank you very much for your help!

    Maan. I remember when i had the same situation. I took me 2 months to run an applet from a server. Well i don't have internet and all that... Anyways make sure you have those things:
    1) have java runtime installed as said above, easiest way go to java.com, SUN's JAVA SOFT RULES! FORGET ABOUT MS' s***.
    2) i never managed to run an applet with code you wrote for example.I use <object> instead and i works fine everywhere.
    <OBJECT classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    codebase = "http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,3,1,0"
    WIDTH = "x" HEIGHT = "y">
    <PARAM NAME = CODE VALUE = "ClassNameWithoutExtension" >
    <PARAM NAME = CODEBASE VALUE = "." >
    <PARAM NAME = "type" VALUE = "application/x-java-applet;version=1.3.1">
    <PARAM NAME = "scriptable" VALUE = "false">
    </OBJECT>3) error might be in the applet itself. The thing is browser doesn't tell you what the hell is wrong with it.

  • How to check browser type using java.

    Hi,
    can anybody help me to check browser type using java.
    Weather it is IE or Mozilla or Opera .
    any class in java for such operation?
    vjoy

    can anybody help me to check browser type using
    java.
    Weather it is IE or Mozilla or Opera .
    any class in java for such operation?From where do you want to perform the check? An applet, application or web application?
    Kaj

  • I have just updated to iOS7, no icon for browser, was using Safari, how do I get it back and can I reverse the upgrade and go back to iOS6?

    I have just updated to iOS7, no icon for browser, was using Safari, how do I get it back and can I reverse the upgrade and go back to iOS6?  Thanks to you from the UnTechie

    The icon for Safari has probably moved to make room for new apps. Scroll the Home screen to look for it.
    You cannot reverse the upgrade.

Maybe you are looking for

  • BI Publisher 11g has terrible monitoring capability.

    I think all I need to post is the following line and people will know what I'm talking about: weblogic.kernel.Default (self-tuning)' has been busy for "703" seconds working on the request "weblogic.servlet.internal.ServletRequestImpl@376d9e05[ The da

  • Add-on won't run on some clients

    As soon as an add-on users de DI SDK, it crashes at startup on some systems and I don't know why. I'm using the DI Basic Operations example that came with the SDK. I build it, and used the SAP B1 SDK setup .NET Wizard to create the installer and lice

  • Problem with Idoc segment maximum length

    Hi friends, We are now creating a new Idoc type. We have started to create the first segment but we encountered a major problem. The problem is that we have a field of 4000 characters but the limit of all segment fields together is 1000 characters. I

  • "Document Security" and "Document Restrictions Summary" different

    Why is there a mismatch of permissions between 'Document Security' and Document Restrictions Summary'? I have a pdf file generated with the following security options enabled -- Printing, Commenting (Annotations), fill-in, Content Modification, Assem

  • Idoc in proxy

    Hi, i want to update the data in idoc,can i do it using proxy?can i use idoc in server proxy? Regards, rao