How install my jar+native package for JRE plugin

I cannot figure out how to deploy a plugin consisting of a Java package that calls native code. The calling order is:
Applet -> installed classes in lib/ext/my.jar -> DLL in C:\\WINDOWS\SYSTEM32
I have gotten my plugin to work on Windows IE using the Microsoft JVM, and on Netscape using LiveConnect, and on Mac using MRJ. It also works with stand-alone Java applications. But I cannot get it to work with Applets when I am using the SUN JRE plugin for Java!
I can call the classes in the JAR file but they can't loadLibrary( the DLL ).
I put my JAR file in "C:\Program Files\JavaSoft\JRE\1.3.1_04\lib\ext".
I put my DLL in "C:\WINDOWS\system32" which is in the "java.library.path".
I was hoping that by installing the JAR file in the lib/ext folder that it would elevate its privelege and allow it to call loadLibrary().
I don't want to have to sign each Applet. My plugin is installed using a digital certificate. Once installed it should give regular Applets the ability to call my native code.
I am hoping to simply use a signed Java installer for the plugin that will copy my JAR file and DLL to the right places.
If you use IE or Netscape without the SUN plugin, you can try my plugins here:
http://www.softsynth.com/jsyn/plugins/
http://www.javasonics.com/plugins/
I'm tired of telling people to disable the SUN JRE plugin and enable the Microsoft JVM in order to use my plugins.....
Any ideas?
Thanks,
Phil Burk

I found a solution to my own problem. The problem was that classes in a JAR file installed in the "java.ext.dirs" path could not call System.loadLibrary() when called from an Applet.
The solution was to explictly make use of the priveledged status of the extension classes as follows:
Boolean result = (Boolean)
AccessController.doPrivileged(new PrivilegedAction()
public Object run()
System.loadLibrary("mylib");
return null;

Similar Messages

  • Glibc error when installing OEL 5.8 packages for 10g install

    Hi, I have the following errors occurring when installing the pre-requisite packages for a 10g install. I'm following the instructions on
    http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php
    file /usr/lib/gconv/libISOIR165.so from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/lib/gconv/libJIS.so from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/lib/gconv/libJISX0213.so from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/lib/gconv/libKSC.so from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/libexec/getconf/POSIX_V6_ILP32_OFF32 from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/libexec/getconf/POSIX_V6_ILP32_OFFBIG from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    file /usr/sbin/iconvconfig from install of glibc-2.5-81.i386 conflicts with file from package glibc-2.5-81.i686
    [root@oravm1 Server]# rpm -Uvh glibc-2.5-81.i86.rpm
    I'm not sure what to do as the 10g install complains that the glibc package is not installed as a requirement for the db software install.

    yum list glibcLoaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Installed Packages
    glibc.i686 2.5-81.el5_8.1 installed
    Available Packages
    glibc.i386 2.5-81.el5_8.1 el5_latest
    Should I really have the i686 version installed?
    The 5.8 install includes the i686 version and the i386 version. Perhaps only the i386 version should have been installed. Am I right? If so should I remove the i686 version and how?
    yum install glibcLoaded plugins: rhnplugin, security
    This system is not registered with ULN.
    ULN support will be disabled.
    Setting up Install Process
    Package glibc-2.5-81.el5_8.1.i686 already installed and latest version
    Nothing to do
    [root@oravm1 ~]#
    Also.....
    The install warned that the swap was not lareg enough, I recall something like 2.7GB when I have actually made it 2GB.
    And the other things was ....
    Checking for shmmax=536870912; found shmmax=33554432
    The instructions I followed say nothing of setting this so high.
    Edited by: ImiDataMan on Apr 11, 2012 4:49 PM

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

  • How can i watch native code for hashCode() in Object class?

    How can i watch native code for hashCode() in Object class?

    Those are two different requirements. You still haven't told us why you want the first one.
    The second one is called JNI - Java Native Interface. There is a forum here, and a large amount of documentation, and a book about it.

  • How to download a business package for ESS and MSS?

    hi folks,
    could anyone tell me how to download a business package for ESS and MSS ? any reference material on the same would be appreciated..
    thanks
    aditi

    Hi aditi
    You can get it from service market place.Follow the below specified path.
    https://websmp203.sap-ag.de/swdc -> SAP Installations and Upgrades -> SAP Application Components -> SAP ERP ->
    SAP ERP 2004 -> SAP Business Packages -> Portal Content ->
    Entry by Component -> Portal Content ->
    BP ESS (ERP 2004) 60.2 -> #OS independent ->
    BPERP4ESS0_0-10003146.zip.
    Unzip that zip file to get the BPERP4ESS01_0-10003146.sca file. Deploy this file via SDM.
    You can get refernce material in
    https://www.sdn.sap.com/irj/sdn/developerareas/contentportfolio
    Also check these links below:
    https://websmp203.sap-ag.de/ess.
    http://kwhelp.sap.com/SAPIKS/Sc03c90b8d952479cb6d30c4ce66c8b8e/KW/IWB_STRUCT21D0EB3B19C10401E10000000A114084/IWB_EXTHLP1CD0EB3B19C10401E10000000A114084/?LANGUAGE=EN&RELEASE=50_2003_Q4&IWB_INDUSTRY=EP_CONTENT&IWB_COUNTRY=&TMP_IWB_TASK=DISPLAY
    http://kwhelp.sap.com/SAPIKS/Scd39acba0a12454691a37c1e41deaeeb/KW/IWB_STRUCT9B33383FDB800804E10000000A114084/IWB_EXTHLPE033383FDB800804E10000000A114084/?LANGUAGE=EN&RELEASE=642&IWB_INDUSTRY=&IWB_COUNTRY=&TMP_IWB_TASK=DISPLAY
    Hope this helps.
    Regards
    Yoga

  • Native package for Mac and relative path

    Hi,
    I done a small application with Javafx that start an Embedded Jetty. All works fine in Windows also with native package. Instead in Mac it works only before native packaging. Seems that the problem is how relative path are considered.
    The tree of the content is this:
    myfile.jar
    webapp (folder)
    libs (folder)
    Look at this code:
                    String webAppDir = "webapp";
                    File f = new File(webAppDir);
                    log.debug("Path webapp folder: " + f.getAbsolutePath());
                    if (!f.exists())
                        throw new Exception("The folder " + f.getAbsolutePath() + " doesn't exist");
                    if (!f.canRead())
                WebAppContext context = new WebAppContext();
                context.setContextPath("/myapp");
                context.setResourceBase("webapp");
                context.setDescriptor("WEB-INF" + File.separator + "web.xml");
                context.setSessionHandler(new SessionHandler(sessionManager));
                        throw new Exception("La cartella " + f.getAbsolutePath() + " non è leggibile");
    The problem is that before the packaging in Mac the relative path is that where the main .jar is located an so the code works because the webapp folder is found. Instead after the bundle the path became /Users/MyUser/webapp and of course the folder is not found because it is bundled inside the file.app near the libs folder.
    Someone can explain me if this behaviour is due to JavaFx packager and how I can solve the problem in a elegant way?
    Thanks very much

    Some good soul has any idea?
    Thanks

  • Install Best Practices- Baseline Package for ECC 6.0 EHP4

    Hi All,
    I know its not the right forum to post this message, but posting here as i didnt get the info from the related forum, apologies for that.
    Now we are planning to install SAP Best practices-Baseline Packages for ECC-EHP4 in our new server.
    Can anybody help me out what are the steps to be carried out. Now we have completed installation of Linux & we want to install BP for General, not for any specific industry.
    B/regds,
    CB

    Please post this question in SAP Basis Forum.
    Alternatively, you can check documents in scribd/ help.sap.com
    Raghavan

  • How install Oracle Developer Suite 10g for Linux (Including Forms & Reports

    hi
    i want to install Forms & Reports Developer Suite in Linux OS So i have downloaded From OTN Site
    "Oracle Developer Suite 10g for Linux (Including Forms & Reports)"
    These are the File's i have Downloaded:
    as_linux_x86_ids_101202_disk1.cpio
    as_linux_x86_ids_101202_disk2.cpio
    so in the Oracle Documentation Site they have given Guide as Follows:
    $cpio -idmv < as_linux_x86_ids_101202_disk1.cpio
    $cpio -idmv < as_linux_x86_ids_101202_disk2.cpio
    after that what should i do ...
    How to Install Oracle Developer Suite 10g for Linux (Including Forms & Reports)
    Kindly Reply ASAP

    Pl follow the steps in the Install Guide - http://download.oracle.com/docs/cd/B19375_02/doc/frs/install/B19314_02/toc.htm
    Srini

  • How to create a software package for PDA?

    On the configuration guide for MI7.1, page 30, it refers a OSS note 1042773
    about how to create a software package on PDA.
    However when I try to pull out note 1042773, I get an error:
    " An SAP note with the number requested could not be found.  "
    Please help give the right note or the method to create software pack for PDA.
    Thanks a lot!

    Hello,
    I will forward this issue to the responsible person, this will be fixed asap.
    Best Regards,
    Stefan

  • How to create a native KeyEvent for non ASCII characters

    Hello
    i need to create a native KeyEvent with my application. I know that it is possible to send such a event with the Robot-Class. But how do i send an event for a none ASCII character such as the german � (O with Diaeresis)?
    I also know that a combination of KeyEvent.VK_DEAD_DIAERESIS + KeyEvent.VK_O will get me the desired result, but i want just to pass the charachter � and let Java create the correct KeyCode(s).
    Does anyone knows a solution?
    BTW: AWTKeyStroke always returns 0 for the �
    Thanks
    Matt

    Hi, James.
    Unfortunately, none of the F-keys can be set to the functions of the Volume keys using the Keyboard Shortcuts preference pane.
    Mac OS X does not include native support for assigning a macro or script to either an Fkey or other keyboard shortcut. For that, you need a third-party tool, like iKey, Quickeys, or Spark, the latter suggested by DPSG-Scout.
    You'd also need a set of scripts to assign to the keys, e.g. scripts to increase, decrease, or mute the volume. Those are tricky to write since System Preferences does not expose much to AppleScript. One would need to use the "GUI Scripting (System Events)" technique to create a script to change the settings in the Sound preferences pane of System Preferences.
    Automator does offer a "Set Computer Volume" action, which allows you to adjust the various Volume settings (Output volume, Alert Volume, Input Volume) to a specific set of levels, including Mute for Output Volume. However, it won't handle the idea of pressing the same key multiple times to either increase or decrease the volume, ala the Volume Adjustment keys. In your case, it's most useful for Mute. Automator Workflows can be saved as applications, which I believe can then be assigned to Fkeys in iKey or QuickKeys.
    Someone may have written a more advanced Automator action for adjusting volume than that provided with Mac OS X. Search Apple's Automator Action Downloads. If you find one, instructions on adding actions to Automator can be found in Automator Help.
    You could search ScriptBuilders to see if someone has already written scripts for the functions you need, then use iKey or Quickeys to assign such to keyboard shortcuts.
    Finally, you could solve the problem another way: buy a set of external speakers that has its own separate volume and mute control. For example, my trusty old Monsoon MM1000s have their own volume control with a mute button.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • How do you create a package for a function?

    Hello,
    Can someone tell me how to create a package for a function? My understanding is to call a function like a beforeReport from the data template, is that the function needs to be in a package.
    Thanks,
    Susan

    Create package my_pack as
    my_val varchar2(40);
    function before_rep(my_param in varchar2) return boolean;
    end my_pack;
    create package body my_pack as
    function before_rep(my_param in varchar2) return boolean is
    begin
    my_val := '1=1';
    return true;
    exception
    when others then
    return false;
    end before_rep;
    end my_pack;
    hope this helps.
    Marcos

  • Can't install 32-bit support package for Production Premium CS5

    Installed CS5 Production Premium. None of our computers are 64 bit so we need the supplementary CS4 32-bit versions of After Effects and Premiere Pro. Downloaded the zip file designated for this. Unzipped app but when I tried to install it, got this error message that says "the file archive part" of these is missing, and says to "download all parts." All what parts? There's only one download, the zip file. I've been over the page that explains about downloading and installing the 32-bit package--can't figure out what's missing or where the heck to find it. 

    The following steps should allow you to locate and download your purchase:
    Log in to your Adobe account to download your software.
    Go to the Adobe Store for your country and sign in with your Adobe ID and password.
    Click My Orders and then My Order History.
    Locate the order number, and click the Download link in the Downloads column.
    Start the download by doing one of the following:
    Click Download and follow the onscreen instructions.
    Click Akamai Download Manager and follow the onscreen instructions.
    Click Alternate Download Method, and then click the .7z and .exe files (Windows) or the .dmg file (Mac OS) to download the software to your computer.

  • How to set the default language for JRE?

    I appreciate the fact that JRE is intelligent enough to select language according to my system default codepage, which is 936 (Simplified Chinese). However, i don't find any option in java control panel or java.exe command line switch to change the codepage for Java back to 437 (which is the default codepage for US english). Is there any way to make the change?

    Thanks, finally i have a way to eliminate Chinese characters in console output. But I'd like to go one step further. Is there any way to permanently set the default encoding for JRE? I don't like the idea of having to add -Dfile.encoding every time i run a java program.

  • Win7 IE8 compliance with 11i EBS - Interoperability patch for JRE plugin

    Gurus,
    I was just looking at note 290807.1 on metalink. One of the required patches is the ...
    APPLICATIONS 11i INTEROPERABILITY PATCH FOR THE JRE NATIVE PLUGIN
    After reading the "readme" about the patch, it doesn't exactly state it's purpose. Is this the patch which will allow both WinXP and Win7 to both utilize 11i EBS on the application server?
    I need to make sure that once we upgrade, OA forms will still be available to our Win XP users. The note doesn't make any explicit statement about this.
    Thanks,
    Scott

    Hi,
    After reading the "readme" about the patch, it doesn't exactly state it's purpose. Is this the patch which will allow both WinXP and Win7 to both utilize 11i EBS on the application server?See these documents.
    Note: 744241.1 - J2se 1.6.07 with IE7 Vista Prompts To Download OAJ2SE.EXE Again and Again
    Note: 554598.1 - After Upgrading to the Latest JRE Plugin (note:290807.1) Applications Clients are Still Showing the Old Jinitiator Version.
    I need to make sure that once we upgrade, OA forms will still be available to our Win XP users. The note doesn't make any explicit statement about this.The certification matrix for Microsoft Internet Explorer (IE) and Windows XP/Vista can be found in (Note: 285218.1 - Recommended Browsers for Oracle E-Business Suite 11i). So, there should be no issues if you meet the minimum requirements in this document.
    Regards,
    Hussein

  • How can I get Support Packages for SAP NSP 2004s?

    Hi together,
    I have installed the SAP NetWeaver 04s Sneak Preview.
    How can I get the support package stacks (SP 6 and SP 7)?
    I have only a small OSS-User for 'Freie Berater' (Free  Consultants). With that OSS-User it is not possibel to download the the support package stacks SAP Support Portal.
    Kind regards, Eva

    Hi Daniel,
    the sp-level is 5. You can find it via system/status/ in the section 'SAP System data' (klick at the detail-icon).
    Web Dynpro for ABAP works with that version. But I would like to have the newest sp-level. Our Web Dynpro teacher gave us some example sources and said that some of them might need sp 6. But I didn't test it.
    I have another question: Have you worked in the MARK project a few years ago? There was a collegue named Daniel Kotte.
    Kind regards, Eva

Maybe you are looking for

  • Sale order block for delivery

    Hi, My requirement is - whenever I save any sale order,by default it should be block for delivery. how to make the setting in system. Harsh

  • What is the use of IP alias on firewalls?

    I have a firewall with one WAN port and two LAN ports. Say the IP on the WAN port is 115.115.115.115. Then the IP address on the LAN ports are 172.16.16.16.1/24 and 192.168.1.1/24. the firewall is in gateway mode (it does NAT ing).Now i have connecte

  • Single Wire CAN cDAQ

    I have would like to use cDAQ for a set of testers that will be built.  These testers need to talk to various hardware and I wanted it to be flexible so I choose cDAQ because modules can be swapped out for I/O that is needed.  I saw that high speed C

  • Two web dispacther pointing to one ERP 6.0 System.

    Dear friends, a customer has the need to connect a second web dispatcher form the DMZ. They have one web dispatcher installed locally serving internal request (customer network). But now, they need to install a second web dispatcher for external requ

  • ITunes keep opening after I closed it...

    I need help as iTunes keeps re-openeing after I manually closed it.  mY iPhone is not conected