Verify installation of MS C Runtime Library - Cannot load JNI library

Hello,
I´am working on a MS XP frontend on customer side and have no admin rights, installed is  SAPGUI for Java 7.10rev4 with sun java version 1.5.0_11
The admin from the customer told me that he had completly installed the MS C Runtime Library VS2005 SP1, file vcredist_x86.msi.
However, if I try to use the JAVA Gui I found in the trace file the following error:
29.07. 10:25:16.039 CON: new GuiNiNetConnection
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1. ERROR #############################
29.07. 10:25:16.055 ERROR: GuiConnection: Connection failed
29.07. 10:25:16.055 ERROR: JniAgiLibAdaptor.: Cannot load JNI library
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.1. ERROR #############################
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2. ERROR #############################
29.07. 10:25:16.055 ERROR: JniAgiLibAdaptor.: Cannot load JNI library
29.07. 10:25:16.055 ERROR: Technical Details
29.07. 10:25:16.055 ERROR: java.lang.Exception: JniAgiLibAdaptor.: Cannot load JNI library
29.07. 10:25:16.055 ERROR: at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init
In an old posted message I found the information that the reason should be that the MS C Runtime Library is not installed.
- Is there a simple way to check if the vcredist_x86.msi is installed in a correct and completed way?
- Any other ideas about the error "Cannot load JNI library" on a windows XP system?
Thanks in advance,
Stefan

Hi szgyurka!
I have an article here that can help you troubleshoot this issue with your iTunes application:
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
Take care, and thanks for visiting the Apple Support Communities.
Cheers,
Braden

Similar Messages

  • Solaris java sapgui error JniAgiLibAdaptor. init : Cannot load JNI library

    i have a problem java sapgui.
    Launch the Sapgui and then try to connect to any one of the three choices and it should produce the following error.
    i am running this on a Solaris 10 32bit. This sam java SAPGUI runs fine when i boot into the windows xp pro. Hope this helps.
    gui version;
    SAPGUI for Java 7.10 rev 8 (java),
    no library (lib)
    (Version ID 071000040800)
    Mon Mar 30 10:34:24 MEST 2009
    uw1059, 710_REL, 1054563
    Java VM: Sun Microsystems Inc. Version 1.6.0_14
    OS: SunOS(x86) Version 5.10
    The version of Java being used is:
    java -version
    java version "1.5.0_16"
    Java(TM) Platform, Standard Edition for Business (build 1.5.0_16-b02)
    Java HotSpot(TM) Client VM (build 1.5.0_16-b02, mixed mode, sharing)
    Thank You,
    Ferhan
    JniAgiLibAdaptor.<init>: Cannot load JNI library
    details;
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:29)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    at: java.awt.Component.processMouseEvent(Unknown Source)
    at: javax.swing.JComponent.processMouseEvent(Unknown Source)
    at: java.awt.Component.processEvent(Unknown Source)
    at: java.awt.Container.processEvent(Unknown Source)
    at: java.awt.Component.dispatchEventImpl(Unknown Source)
    at: java.awt.Container.dispatchEventImpl(Unknown Source)
    at: java.awt.Component.dispatchEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at: java.awt.LightweightDispatcher.proc
    Attempt to load shared library
    /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so failed.
    The library file exists, so either the program has
    insufficient privileges to access the library or the library
    is not loadable by the shared object loader.
    Please recheck the system requirements for your operating
    system and make sure all required libraries are installed.
    details;
    ava.lang.UnsatisfiedLinkError: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: ld.so.1: java: fatal: /opt/SAPClients/SAPGUI7.10rev8/bin/libJPlatin.so: wrong ELF data format: ELFDATA2MSB (Possible cause: endianness mismatch)
    at: java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at: java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at: java.lang.ClassLoader.loadLibrary(Unknown Source)
    at: java.lang.Runtime.load0(Unknown Source)
    at: java.lang.System.load(Unknown Source)
    at: com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:56)
    at: com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:27)
    at: com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:283)
    at: com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:297)
    at: com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:798)
    at: com.sap.platin.base.logon.GuiLogonFrame.doConnect(GuiLogonFrame.java:838)
    at: com.sap.platin.base.logon.GuiLogonFrame$SymListener.actionPerformed(GuiLogonFrame.java:443)
    at: javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at: javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at: javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at: javax.swing.plaf.basic.BasicB

    Hello Ferhan,
    the output of the AboutBox is indicating that you are trying to run SAP GUI for Java on Solaris 10 with x86 CPU. Unfortunately, the library required to be loaded is complied for SPARC. Please have a look at the system requirements part of the manual coming with the installer of SAP GUI for Java or [note 959236|https://service.sap.com/sap/support/notes/959236].
    Best regards
    Rolf-Martin

  • Error in SAPGUI-on AIX- Can't load JNI library

    Error in SAPGUI-on AIX- Can't load JNI library
    I am getting error as below:
    ^C# ./sapgui /H/punlparidm06 /S/sapdbIND
    ERROR #############################
    07.03. 12:48:37.619 ERROR: Attempt to load shared library /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so failed.
    07.03. 12:48:37.619 ERROR: The library file exists, so either the program
    07.03. 12:48:37.619 ERROR: don't has the privileges to access the library
    07.03. 12:48:37.619 ERROR: or the library is not loadable by the shared object loader
    07.03. 12:48:37.619 ERROR: Technical information:
    07.03. 12:48:37.619 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
    07.03. 12:48:37.619 ERROR: Error message : /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so: load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so: load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2144)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1973)
    at java.lang.Runtime.load0(Runtime.java:773)
    at java.lang.System.load(System.java:887)
    at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
    at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
    at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
    at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
    at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
    at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
    at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
    at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
    at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.Gui.main(Gui.java:65)
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
    at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:25)
    at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
    at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
    at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
    at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
    at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
    at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
    at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
    at java.lang.reflect.Method.invoke(Method.java:391)
    at com.sap.platin.Gui.main(Gui.java:65)
    ERROR #############################
    07.03. 12:51:52.173 ERROR: GuiConnection: Connect failed
    07.03. 12:51:52.173 ERROR: JniAgiLibAdaptor.<init>: Cannot load JNI library
    ERROR #############################

    Hi,
    It seems to be a permission issue.
    Just check the permissions and grant 755 using chmod comand.
    Hope it helps.
    Reward suitable points!!!!!

  • Error while creating database - Cannot load backend library 'oci.dll'

    Hi all,
    I am newbie to Timesten imdb (in memory database). I do not wish to use oracle rdbms.
    I have installed the Timesten IMDB on Win2003.
    E:\TimesTen\tt70_32\bin>ttVersion.exe
    TimesTen Release 7.0.5.0.0 (32 bit NT) (tt70_32:17000) 2008-04-05T00:54:16Z
    Instance admin: m4sadm
    Instance home directory: e:\TimesTen\tt70_32
    Daemon home directory: e:\TimesTen\tt70_32\srv\info
    While installing, I followed the viewlet at: [http://www.oracle.com/technology/products/timesten/viewlets/tt70_install_win_viewlet_swf.html]
    Now, I am planning to create a database, and so following the viewlet at: [http://www.oracle.com/technology/products/timesten/viewlets/tt70_create_db_win_cc_viewlet_swf.html]
    However, when I give the command (according to the viewlet), I get the following error:
    Command> select * from v$version;
    5102: Cannot load backend library 'oci.dll' for Cache Connect. OS error message '<empty>'.
    The command failed.
    Can anyone provide pointers to resolve this?

    I'm guessing you chose No to the install question about using Cache Connect to Oracle? This would cause certain libraries not to be installed at install time, specifically libraries that would enable you to use TimesTen Cache Connect to cache data from Oracle tables.
    The table "v$version" that you use in your select
    select * from v$version
    only exists on an Oracle RDBMS. It doesn't exist on TimesTen. Moreover the second viewlet you refer to is about using the TimesTen Cache Connect feature to cache tables from Oracle RDBMS. If you're not interested in using Oracle RDBMS, as you say, it would be my assumption that you're also not interested in using the TimesTen Cache Connect feature? So I'm a little confused here about your intentions. Are you interested in using TimesTen as a standalone datastore, or do you want to use it to cache data from tables located in an Oracle RDBMS?
    Thanks.

  • Cannot load a library unit database_object ( referenced by package name )

    Dear Friends,
    I am using Plls in Reports 6i. In One of the Pll I am Using
    Backend Table in package body. I have two 8i instances. when I
    comiple and save and close this plls with one instance( say
    instance "A" ), its fine. it is done sucessfully. Now i am
    connecting to other instance ( say instance "B" ) and open that
    same pll. it is showing compilation error "Cannot load a library
    unit <my_table> ( referenced by <package name> )". Now I compile
    and save and close with instance "B". it is done sucessfully.
    Again I am connecting to Instance "A" and open that same PLL. It
    is showing same Error "Cannot load a library unit <my_table> (
    referenced by <package name> )"
    Anybody can tell me , How to get rid of this Problem. I dont
    know its a BUG or somthing else.
    I am using Window2000 as OS.
    Thanks
    Ashish Parikh

    If a Schema has some objects in it, then you cannot drop that Schema until you remove all the objects out of it. You can change the schema owner
    to another database principal and drop the user like,
    Alter Authorization ON Schema::username TO DBO; Drop User username;
    other option would be
    Transfer the username schema objects to a different schema and drop username schema and user like.
    Alter Schema DBO Transfer Username.[OBEJECTNAME] ;
    --need to repeat this until you transfer all objects under this schema
    Drop Schema username;
    Drop User username;
    Regards,
    Praveen D'sa
    MCITP - Database Administrator - 2008
    sqlerrors

  • Cannot load my library onto my ipod since getting icloud?  Itunes states that I need to download from icloud?  Can I not use my ipod as I did pre-icloud?

    cannot load my library onto my ipod since getting icloud?  Itunes states that I need to download from icloud?  Can I not use my ipod as I did pre-icloud?

    Chris CA wrote:
    You cannot backup photos to iCloud.
    You can enable Photo Stream (in Settings > iCloud) but only for 30 days and only a max of 1000 photos.
    Then what does this mean? It was copied from the kb article that I posted above.
    Reducing the size of your Camera Roll backup
    If you take lots of photos and videos with your iOS device, you may notice your Camera Roll takes up most of your iCloud Storage backup. To check the size of the Camera Roll backup on your device:
    On your Home Screen, tap Settings.
    Tap iCloud.
    Tap Storage & Backup.
    Tap Manage Storage.
    In the Backups section, tap your device.
    In the Backup Options section, the backup size is displayed under Camera Roll.
    To reduce the size of your Camera Roll backup, save your photos and videos locally to your computer with iTunes, and then manually back up your iOS device. If you want to keep your photos and videos on your iOS device, you can turn off Camera Roll in Backup (see the "Deleting backups and turning off Backup for your Device" section above) orpurchase additional storage.

  • Has anyone seen this Dyld Error Message:   Library not loaded: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/iLifeSlid eshow   Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto   Reason: image not found

    Getting this error on iPhoto open it refers to iLifeSlideShow and iPhoto quits - or doesn't open.
    Dyld Error Message:
      Library not loaded: /System/Library/PrivateFrameworks/iLifeSlideshow.framework/Versions/A/iLifeSlid eshow
      Referenced from: /Applications/iPhoto.app/Contents/MacOS/iPhoto
      Reason: image not found

    Yes, some perople have seen this. Options:
    1. Try reinstall iPhoto. (see below)
    2. If you have access to another Mac with the same version of the OS, try and copy that framework over
    3. Reinstall the OS.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.
    Regards
    TD

  • Cannot load iPhoto Library nor download photos from camera

    Upon reading most of the forums I have come to the conclusion that I have screwed up iPhoto Library by moving and deleting photos. Now Iphoto, verson 2.0 will not load the library nor download photos from an attached camera. It just remains a blank slate. I just did a clean install of OS 10.3 and downloaded all upgrades. Everything works except iPhoto. Reason I did all the didling with the library was that I have 25 Gigs of photos and my hardrive was too full. I still have over 15 Gig of photos on the drive and cannot view them. Prior to the Clean install of OS 10.3 Iphoto worked fine. I have purchased an external hard drive and now think I must do the following:
    1. Format the new hard drive
    2. Move the present iphoto library to the external hard drive. I have to do this as I still have no room on my hard drive. Move the old library out of picture folder.
    3. Open Iphoto. Now it supposedly will ask me where the library is. I will show iPhoto where it is on external drive. Question, iPhoto does not recognize the library now so why should it when I show where it has been moved to?? Do I just move iPhoto library folder or the complete Picture folder?? Also when I hold down the shift and option keys while opening Iphoto to rebuild the library why should it as iphoto stil does not recognize its library??
    4. Somewhere on the discussions I read that I have to hold down option key to get a new iPhoto Library. Can I do this and after creating new library have Iphoto download all albums from old renamed iphoto library??
    Sorry for all the stupid questions. These photos are kids, grandkids and great grandkids, family pictures, etc. It would be devastating to me to loose these. Any help would be appreciated. Than ks
    Powerbook G4   Mac OS X (10.3.9)  
    Powerbook G4   Mac OS X (10.3.9)  

    theolddog:
    Welcome to the Apple Discussions. You will not be able to resurrect your old library due to the renaming and moving of files within the iPhoto Library folder. You'll have to create a new library and import the full sized image files from the old library folder. Here's what you'll need to do:
    1 - open the old iPhoto library folder and type Command-F (find). Then set the following search criteria.
    a. Name contains ".jpg"
    b. Size is greater than 100 KB.
    2 - in the search window will be all of the thumbnail files that do don't want to import into the new library. So select them all and drag to the trash.
    3 - launch iPhoto with the option key depressed and create a new library.
    4 - use the File->Import menu option to select the old library folder and import all of the image files contained therein. You won't get any of the small thumbnail files since you removed them earlier.
    That should do it. You'll probably have more rolls then you had before so you'll have to consolidate photos into fewer rolls. In the future Don't tamper with files in the iPhoto Library folder from the Finder. That's the cardinal sin of iPhoto.
    Do you Twango?

  • Loading JNI library on Tomcat startup

    I am trying to load a JNI library on startup of servlet. I have written the following code in my servlet init function:
    public void init(ServletConfig config) throws ServletException {
    super.init(config);
    log.info("Loading native libraries...");
    System.loadLibrary("foo");
    log.info("Native libraries loaded...");
    On Tomcat startup, I see the "Loading native libraries..." message, but I don't see the "Native libraries loaded...". As if the system hung in the System.loadLibrary function.
    Anybody knows how to solve this problem?
    Martin

    The specification specifically forbids the use of native libraries in container objects. So you might want to take that into consideration with whatever you are doing.
    If you do want to do that then I would suggest loading it outside of the container. There is probably some configuration option that allows you to force tomcat to load something on start up.
    You might also want to consider if hot deploys are part of your future. If they are then you might want to put the interface inside of your own custom class loader, so you can probably control the unload of the shared library.
    If you search the J2EE lists you will find that almost everyone states that JNI should not even be loaded into the server. Instead you should create a seperate application and use RMI to access it. Myself I think that is overkill, but I would probably consider exactly what I am interfacing to before making that final decision. If your JNI library blows up it will take down the entire server (which is why the spec forbids it.)

  • ITunes library cannot load from NAS - Asking password when it should not...

    Hi all,
    I just updated from Windows 8 to Windows 8.1, worst idea ever. Tons of problems appeared including this really strange one.
    iTunes, for a reason or another, decided to reset my library path, which mean all my songs have the "!" symbol in front, saying iTunes cannot find it. So I went in the preference menu to change it back to what it was (it was on the default folder now). My library was running from my NAS drive, using the "Z" letter on my computer. When I click on the button to change the library folder and select my NAS (it appear in the "Network" field), it ask for a password. Still, there is no password on the NAS, and I have no problems opening the NAS from the network menu BUT from the itunes options...
    I tried using my NAS admin account (didnt work), windows account (didnt work), admin admin (didnt work).
    What is the most frustrating is that I can go see the files and play them from the NAS on my computer, it's just itunes that is completly broken for no reason...
    Is there AT LEAST a way to force itunes to change the folder from a file or something?
    Thanks a lot for the help in advance guys.
    PS: Really, this is the last time. If I loose my library I will never use itunes again... I'll find any crappy program that can surely not do better, but at least work...

    try double clicking a song with a !
    in the resulting pop up hit locate
    browse to the location of the song and select it
    in the next pop up tell it yes to use the location of that song to find other items

  • Cannot load shared library from Java on AIX

    I am working on a 64-bit AIX5.2 machine. I created a hello world program using JNI. When I run it, System.loadLibrary() does not find my shared library. After looking into it for several hours, I realized it might be something to do with my 32 bit mode build. The reason I am building as 32 bit is because I thought it would work on both 32 and 64 bit platforms.
    This is how I compile my C++ file and build the shared library:
    xlC_r -brtl -q32 -c -I"." -I"/usr/java5_64/include" -c NativeHello.cpp -o NativeHello.o
    xlC_r -brtl -G -q32 -o libNativeHello.so NativeHello.o
    When I run my HelloWorld java program, it gives this error:
    java.lang.UnsatisfiedLinkError: NativeHello (A file or directory in the path name does not exist.)
    However, when I change the build lines to use -q64 instead of -q32, my hello world program works just fine.
    So I am suspecting that Java is not expecting my shared library that was compiled as 32 bit.
    How can I correct this problem? Is there any flag that I might be missing? Or do I need to build separate libraries for 32 bit and 64 bit environment?
    Thanks for your help in advance.

    This is not a java problem.
    It is a VM problem.
    So for the VM (vendor and version) that you are using it requires certain things.
    It might be that the VM doesn't load 32 at all. Or that you have to do something different when you compile it.
    A forum that is specific to your VM might be more productive (this site tends to be strongly solaris/linux/windows.)

  • Check if applet can load JNI library within the applet

    Hello,
    I have a signed applet that is part of a bigger application. The application has native installer that installs some JNI libraries and grants permissions to my applet in java.policy file. However if the user did not install the application (using the installer) which means that the java.policy file is not modified. Then if he/she go directly go to the web UI, and opens my applet the user sees a dialog with the following warning: "The applet was signed by "xxx", but Java cannot verify the authenticity of the signature's certificate. Do you trust this certificate?" that have two buttons "Trust" and "Don't trust".
    I have two questions:
    A) Is it possible instead of showing the dialog, the JVM directly to choose "Don't trust", which means that I will get a security exception inside my code, so I can navigate to another site with installation instructions.
    B) what is the exact reason for showing this dialog. Is it because I am calling System.loadLibrary("xxx"); which requires privileges. If this is the case, how can I check if the applet has enough privileges before calling System.loadLibrary()?
    Thanks in advance
    Kiril

    A) Is it possible instead of showing the dialog, the JVM directly to choose "Don't trust", which means that I will get a security exception inside my code, so I can navigate to another site with installation instructions.Just don't sign it. It will be totally untrusted, except for clients that have java.policy modified.
    You will get the exception, will catch it and you will be able to navigate to another page from the
    catch block.
    B) what is the exact reason for showing this dialog.The reason is that the applet is signed.
    The reason for the "but..." part is that the certificate was created by a certificate authority that
    Java does not recognize (it would recognize 'well known' CA's like Verisign, Thawte etc.).
    Is it because I am calling System.loadLibrary("xxx"); which requires privileges. If this is the case, how can I check if the applet has enough privileges before calling System.loadLibrary()?Why 'before'? Isn't this good enough?
    try
      System.loadLibrary("xxx");
      // Applet has privileges
    catch ( SecurityException e )
      // Applet does not have privileges
    }

  • Error: Can't load libJPlatin.so -(JNI Library)in SAP GUI  for java 7.0 -AIX

    Hi,
    I am getting error in SAP GUI  for java 7.0 -AIX
    <b>Error: Can't load libJPlatin.so -(JNI Library)</b>
    I ran command as
    <b>./guistart /H/localhost/S/sapdbIND</b>
    I gave 777 permission to corressponding library.

    It's on AIX.
    <b>I am getting error as below:</b>
    ^C# ./sapgui /H/punlparidm06 /S/sapdbIND
    ERROR #############################
    07.03. 12:48:37.619 ERROR: Attempt to load shared library /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so failed.
    07.03. 12:48:37.619 ERROR: The library file exists, so either the program
    07.03. 12:48:37.619 ERROR: don't has the privileges to access the library
    07.03. 12:48:37.619 ERROR: or the library is not loadable by the shared object loader
    07.03. 12:48:37.619 ERROR: Technical information:
    07.03. 12:48:37.619 ERROR: Error location: GuiJniLoader.loadPlatinLibrary()
    07.03. 12:48:37.619 ERROR: Error message : /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so:  load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
    ERROR #############################
    java.lang.UnsatisfiedLinkError: /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so:  load ENOEXEC on shared library(s) /local/SAPClients/SAPGUI7.00rev2.1/bin/libJPlatin.so
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2144)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1973)
            at java.lang.Runtime.load0(Runtime.java:773)
            at java.lang.System.load(System.java:887)
            at com.sap.platin.r3.util.GuiJniLoader.loadPlatinLibrary(GuiJniLoader.java:114)
            at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:24)
            at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
            at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
            at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
            at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
            at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
            at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
            at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.Gui.main(Gui.java:65)
    java.lang.Exception: JniAgiLibAdaptor.<init>: Cannot load JNI library
            at com.sap.platin.r3.protocol.diag.JniAgiLibAdaptor.<init>(JniAgiLibAdaptor.java:25)
            at com.sap.platin.r3.protocol.diag.GuiDiagToAutomationParser.configure(GuiDiagToAutomationParser.java:289)
            at com.sap.platin.base.connection.GuiConnection.open(GuiConnection.java:316)
            at com.sap.platin.base.application.GuiApplication.createConnection(GuiApplication.java:860)
            at com.sap.platin.base.logon.GuiImpl.evalCommandLine(GuiImpl.java:275)
            at com.sap.platin.base.logon.GuiImpl.<init>(GuiImpl.java:44)
            at com.sap.platin.base.logon.GuiImpl.main(GuiImpl.java:447)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.micro.Microkernel.invokeMainMethod(Microkernel.java:1670)
            at com.sap.platin.micro.Microkernel.startApplication(Microkernel.java:1750)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.platin.Gui.main(Gui.java:65)
    ERROR #############################
    07.03. 12:51:52.173 ERROR: GuiConnection: Connect failed
    07.03. 12:51:52.173 ERROR: JniAgiLibAdaptor.<init>: Cannot load JNI library
    ERROR #############################

  • Users cannot access Document Library althouth they have Edit permissions

    Hello,
    I have a strange SharePoint 2013 case, or at least it's strange to me.
    Users from the company cannot access a Document Library although I've granted them Edit permissions. The Inheritance from the parent have been broken, all inherited groups have been removed and all users have unique permissions to this library. Here is the
    setup:
    Web App -> Sub Site A -> Sub Site B -> Sub Site C -> Sub Site D -> Library
    So these users have Read access from the Web App down to Sub Site B. They cannot see Sub Site C and D because these sites are also with broken inheritance and unique permissions. But I've granted Edit permissions for these users to the Library.
    If I assign View permissions for these users to the Sub Site D then they can upload and edit documents in the library, but still cannot see Sub Site C which was my intention anyway. Again i don't want them to see Sub Site D either, but if i remove the View
    permissions they can't access the library.
    On SP 2010 this was not an issue. I'm not sure if here the permissions are different or not, but I've never seen such issue before.
    Any ideas will be much appreciated. I hope the explanation is good enough to describe the issue.
    Many Thanks in advance.
    Ivo

    Hi Ivaylo,
    According to your description, my understanding is that the user with only Edit permission on the library cannot access the library.
    I recommend to check if the Limited-access user permission lockdown mode feature is deactivated in root site.
    If it is not, deactivate it and then test to see if the issue still occurs.
    To deactivate the feature, please go to the root site > Site Settings > Site collection features > deactivate Limited-access user permission lockdown mode.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Library not Found: /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit

    Hello all,
    I am working with a MacBook purchased in 2009, OSX 10.6.8, processor: 2.13 GHz Intel Core 2 Duo, Memory: 2 GB 800 MHz DDR2 SDRAM.
    I recently downloaded and tried to install a game I had previously successfully installed from Gamehouse.com. The download goes fine, when I open the .dmg file the correct window pops up with an icon to double-click to start installation. At that point I receive an error message (see below). I contacted Gamehouse and ran through a number of solutions they gave me, including uninstalling and removing all traces of this or any other game from my computer (including .plist files), installing any available updates (iTunes finally got that update I've been postponing for months...), and dragging the installer icon into various different locations before opening. All to no avail.
    It appears to me the issue is this line in the error message: "Library not Found: /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit"
    I checked the Frameworks folder and there is nothing there called StoreKit.framework, so that seems to make sense. It isn't anywhere else in the computer either. After a quick google I found this problem pops up now and then - there is one other question on the same issue in this forum, but I have no idea if the solution given there works, as the original poster never came back. Their suggestion was to try reinstalling Just OSX from the boot disc. I haven't attempted this yet - I thought I'd see if I can get any input before going that route.
    Thank you for any advice. Here is the full error report:
    Process:         Delicious - Emily's Wonder Wedding [349]
    Path:            /Applications/Delicious - Emily's Wonder Wedding Premium Edition.app/Contents/MacOS/Delicious - Emily's Wonder Wedding
    Identifier:      com.mrgoodlivng.delicious8.mac
    Version:         ??? (???)
    Code Type:       X86 (Native)
    Parent Process:  launchd [91]
    Date/Time:       2014-08-10 14:33:56.929 -0500
    OS Version:      Mac OS X 10.6.8 (10K549)
    Report Version:  6
    Interval Since Last Report:          201860 sec
    Crashes Since Last Report:           18
    Per-App Crashes Since Last Report:   21
    Anonymous UUID:                      750B56F7-4793-44CA-847D-5A35F9F8DABC
    Exception Type:  EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000002, 0x0000000000000000
    Crashed Thread:  0
    Dyld Error Message:
      Library not loaded: /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit
      Referenced from: /Applications/Delicious - Emily's Wonder Wedding Premium Edition.app/Contents/MacOS/Delicious - Emily's Wonder Wedding
      Reason: image not found
    Binary Images:
    0x8fe00000 - 0x8fe4162b  dyld 132.1 (???) <749D24EE-54BD-D74B-D305-C13F5E6C95D8> /usr/lib/dyld
    Model: MacBook5,2, BootROM MB52.0088.B06, 2 processors, Intel Core 2 Duo, 2.13 GHz, 2 GB, SMC 1.38f5
    Graphics: NVIDIA GeForce 9400M, NVIDIA GeForce 9400M, PCI, 256 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x8E), Broadcom BCM43xx 1.0 (5.10.131.42.4)
    Bluetooth: Version 2.4.5f3, 2 service, 12 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: FUJITSU MHZ2160BH FFS G1, 149.05 GB
    Serial ATA Device: HL-DT-ST DVDRW  GS22N
    USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x06100000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac  (Apple Inc.), 0x8215, 0x06110000 / 3
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac  (Apple Inc.), 0x0229, 0x04600000 / 3
    USB Device: IR Receiver, 0x05ac  (Apple Inc.), 0x8242, 0x04500000 / 2

    That file is a OS X system file, you'll have to overwrite OS X with a new copy to restore it.
    First things first
    Emergency backup procedure
    Drag and drop copy your users file folders (music, pictures, documents etc) to a regular external powered drive as soon as possible.
    Do not use, setup or trust only TimeMachine at this troubled time as it will copy corrupted data and we need just your users files safe just in case. TimeMachine cannot be used with a Windows PC.
    Unmount and Disconnect all external drives once the backup process is completed.
    Note:
    If you have any over 4GB sized files, those won't copy to a standard formatted FAT32/MSDOS drive from the factory, if you need to save these 4GB+ files use another blank/empty drive and use Disk Utility to format it 1 Partition, Option: GUID,  Format: OS X Extended Journaled (or the standard default one for older Mac's).
    Mac's cannot copy to nor format a NTFS  drive. ExFAT format to be used with a Windows machine must be right click formatted by Windows, not OS X (does it wrong) XP machines can install a free exFAT update from Microsoft. Vista-Win 8 can format exFAT.
    Formatting a drive will erase all data on it.
    Once your files are safely copied off the machine, next run through this list of fixes, I suspect #8 Reinstall Just OS X + Software Updating fully should restore the broken/missing file.
    ..Step by Step to fix your Mac
    Overwriting OS X with a new copy does not delete most programs or users files, but you backup your users files regardless as it might be something more than we currently know at this time.

Maybe you are looking for

  • HH3 Type A can't tell the time

    Currently on HH3 number five, this one is Type A and has been running for about a week with reasonably consistent speeds until this morning when it had dropped again when I tried to restart it nothing happened.  Tried switching on/off still nothing j

  • Dynamic Table not displaying data

    First off, i have searched high and low, and havent been able to find much help. That said, i have been trying to create a simple search/results page in dream weaver, i am using ASP and sql express.  Ive been following the adobe tutorial, and everyth

  • Arabic Text - Font Substitution Issue - Urgent.

    Hi, We are using After Effects to create some Arabic Subtitles, we are using the Arabic Text script to make the arabic text to be written correctly (all joined up, flowing from Right to Left). We need to use a client's custom Arabic font on the proje

  • Help to make sure Mountain Lion Redeem will work

    I just purchased Macbook pro retina july 5th and I went through steps to redeem mountain lion, and my email id was my email from the school i just graduated from and right after that I changed my login to my new email. I have my claim reference etc,

  • R/w Quicktime on Win7-64 bit with 64-bit Premiere and AE?

    Does CS5 running in 64 bit (not using 32 bit CS4 version) on Win7-64 have the ability to read and write Quicktime files? Is this for both CS5 64 bit Premiere and AE? Does it work well? Thanks!