Can't load JdbcOdbc library on Win95`

I have set up my data source name and it is present in the odbc.ini file in C:\windows
I compile and execute the sample code and the Jdbc-Odbc Bridge loads but then it tries to load the JdbcOdbc library and can't. Here is the output:
DriverManager.getConnection("jdbc:odbc:Test")
trying driver[className=sun.jdbc.odbc.JdbcOdbcDriver,sun.jdbc.odbc.JdbcOdbcDriver@1fef6f]
*Driver.connect (jdbc:odbc:Test)
JDBC to ODBC Bridge: Checking security
No SecurityManager present, assuming trusted application/applet
JDBC to ODBC Bridge 2.0001
Current Date/Time: Fri Jul 20 06:04:41 PDT 2001
Loading JdbcOdbc library
Unable to load JdbcOdbc library
java.sql.SQLException: Unable to load JdbcOdbc library
     at sun.jdbc.odbc.JdbcOdbc.<init>(JdbcOdbc.java:81)
     at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:311)
     at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:149)
     at java.sql.DriverManager.getConnection(DriverManager.java:517)
     at java.sql.DriverManager.getConnection(DriverManager.java:177)
     at CreateCoffees.main(CreateCoffees.java:57)
Unable to load JdbcOdbc library
Unable to allocate environment
getConnection: no suitable driver
java.sql.SQLException: No suitable driver
     at java.sql.DriverManager.getConnection(DriverManager.java:537)
     at java.sql.DriverManager.getConnection(DriverManager.java:177)
     at CreateCoffees.main(CreateCoffees.java:57)
SQLException: SQLState(08001)
SQLException: No suitable driver
I have added the extension jdbc2_0-stdext.jar and it is in my classpath.
Can anyone help? I don't know where the library should be located, what it would be called or what configuration change I could make to help locate/load it.

Two possibilities... If the database Test doesn't exist, you will get that warning. Also, if you have some sort of security (on win 95, not likely, oh, sorry :) that prevents you from accessing the file, then you may have problems with the driver as well. Also, try downloading it again, I've had files corrupted before, and you don't think of it until you've spent 3 hours on it.
GN

Similar Messages

  • Unable to Load JdbcOdbc library -- Linux

    I know this question has been asked a lot, but I couldn't find a helpful answer in all my searches. I'm trying to use JdbcOdbc to connect to MySQL via ODBC on Linux. I have to use ODBC as part of an assignment, which is rather annoying, since the MySQL J/Connectivity JDBC driver works perfectly. But the assignment sort of assumes I'm on Windows and using MS Access, although I did have a choice to use MySQL.
    That's the background.
    This is the error I'm getting when trying to connect to ODBC. It's loading the driver all right (ie: no problems if I comment out the lines that tries to connect to the database).
    *Driver.connect (jdbc:odbc:flightData)
    JDBC to ODBC Bridge: Checking security
    No SecurityManager present, assuming trusted application/applet
    JDBC to ODBC Bridge 2.0001
    Current Date/Time: Wed Mar 19 09:12:20 CST 2003
    Loading JdbcOdbc library
    Unable to load JdbcOdbc library
    Exception in thread "main" java.lang.NullPointerException
    at sun.jdbc.odbc.JdbcOdbcDriver.initialize(JdbcOdbcDriver.java:435)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:153)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at testData.main(testData.java:17)
    I've tried variations on the URL and the connect pattern, but it seems almost certain that it cannot load the library, and it's not the URL that's the problem yet.
    What I've done:
    I did a search on google and on this forum. I found that the directory containing libJdbcOdbc.so should be in /etc/ld.so.conf. I added it and I ran ldconfig -v; the library is listed in the output of that command, so I think it is loaded. I don't know how to check if a particular library is loaded?
    In this forum, I found that there might be a problem with the access permissions. I read that I should set the AllPermission policy to see if that's a problem, but I'm not exactly sure how to do that. Policytool is kind of cryptic, and on top of that, its GUI window is not displaying properly for me. If somebody could tell me the contents I should put in ~/.java.policy to enable all permissions, it might help.
    In addition, I've tried using the JDBCTest tool, and it also was unable to connect to ODBC. However, if I use the tool called DataManager that is a part of the ODBC implementation, it can connect to the database easily (which indicates that the database is properly set up via ODBCConfig, I think).
    My System:
    I'm running Debian Linux 3.0 (Woody) / unstable. I'm using the Blackdown version of Jdk1.4, which I retreived via apt-get. I'm not absolutely certain what I've got running ODBC; I also got it via apt-get. As mentioned, the tools odbcinst, ODBCConfig, and DataManager are all installed on my system.
    I'm really confused by this problem, since all the advice I've been able to find has helped other people, yet I'm still lost!
    Thanks,
    Dusty

    After running ldd on libJdbcOdbc.so, I realized I had to make a couple of symlinks from odbc.so.1 in /usr/lib to odbc.so.
    Dusty

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

  • ITunes can't load Aperture library for iPad Air sync

    I have a 120gb Aperture library stored on my NAS. Got my new iPad Air and when I go to the Photos tab in sync options, the gray wheel just keeps on spinning indefintely. I don't know if it can't load a library that big, or if there's something else going on. If I create a small Aperture library it works fine. Anyone else had this issue?
    Running 11.1.3 on Mavericks.
    Thanks!

    I'm experiencing exactly the same issue with a 42GB Library. Same issue even if I create a new smaller library. When I click on the device in itunes and then photos I get the grey wheel turning for hours. I tried switching to iPhoto library and the issue seems worse.

  • Can't load a library that depends on another

    I built a library and it loaded perfectly (just for testing).
    Now, my library is supposed use ALSA's API.
    Now, I get to compile my library, just like before, but now I can't load the library. I get a UnsatisfiedLinkError. The message is a little cryptic: Can't load IA 32-bit .so on a IA 32-bit platform
    It seems like when my library is being loaded, the alsa library on which it depends (libalsa09.so) can't be loaded. How can I avoid this? I added both my library's and alsa's directories to LD_LIBRARY_PATH, but I just can't get it done.
    Here's what happens:
    $ LD_LIBRARY_PATH=/usr/lib/ao/plugins-2:lib java -cp bin wmagic.basic.Wave 440
    Can't load library wmagic_alsa
    java.lang.UnsatisfiedLinkError: /home/antoranz/eclipse/europa/workspace/wmagic/lib/libwmagic_alsa.so: Can't load IA 32-bit .so on a IA 32-bit platform
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at wmagic.basic.SoundOutput.initializeAlsa(SoundOutput.java:87)
            at wmagic.basic.SoundOutput.<init>(SoundOutput.java:29)
            at wmagic.basic.Wave.main(Wave.java:61)Maybe the problem is the way I'm creating my jni so (in an ant target):
    <echo>Compiling Library</echo>
    <exec executable="${Ccompiler}">
         <arg value="-o"/>
         <arg value="${library.dir}/libwmagic_alsa.so" />
         <arg value="-shared" />
         <arg value="-I${source.dir}/wmagic/alsa" />
         <arg value="-I${jni.includes.dir}" />
         <arg value="-I${jni.includes.dir}/linux" />
         <arg value="-lalsa09" />
         <arg value="-L/usr/lib/ao/plugins-2" />
         <arg value="${source.dir}/wmagic/alsa/wmagic_alsa.c" />
         <arg value="-static" />
         <arg value="-lc" />
    </exec>How can I get it to work? I'm catching the exception and using Java Sound as a fall back, but I want to use alsa (and that's another thread in the forums: How to use alsa's default device in Java Sound... but nobody has told me how to... so don't go down that path, please. :-)).

    If you are linking to a shared library then one of the following must be true.
    1. The shared library must be in the shared library path of the OS
    2. You must explicitly load the shared library first using an explicit path.

  • What .xml or .itl  file do I delete so I can re-load my library?

    I opened iTunes today and although all my music was listed under "Music" in the Library, every time I tried to play a song I am told that the original cannot be found.  So what do I need to do to clear out iTunes "memory" so I can re-load the library?

    Preferences just tells iTunes where to store music (in the future) it does not add it to your library. The media folder you point to (unecessarily since it is the faefault setting) can be loaded chock-full of media but you have to add it to your library before any of it will show in iTunes.  Deleting those two library files just got rid of all reference to yur having those media files as far as iTunes was concerned, and now you need to have it lern about them again by adding them.

  • Can't load music library on Blackberry Link

    When I click on my computers files to load my music library through Blackberry Link it says:
    Blackberry Link Wasn't Able to Load Your Music Library
    Close then reopen Blackberry Link
    Did that many times, rebooted the computer, reinstalled the program etc all won't load my Itunes library.
    It worked fine on BB Desktop Manager with my Bold 9900 which I was using until yesterday.
    When right clicking on all music and going sync to > Blackberry10. It says 'A problem occured while attempting to access your media library (the sync did not complete."
    Although there is no music there anyway as it can't load my Itunes library
    Can someone please help?
    Thanks

    I find it easier to just go through windows explorer and treat the phone as a memory stick. I click and drag everything over, a bit archaic but it works for me, problem free.
    It's always funny when it's someone else.

  • New PC can't load old library.

    I was able to use my iPod to transfer my library from my old PC to my new PC, however now I can't get the library into my newly installed iTunes library. What am I doing wrong? I followed the on-line help and it just says once I've copied it from iPod to my new computer it magically would appear in my new library, well it didn't. I have tried to go to the iTunes File then Add Folder to library, get to where I saved the iPod dump (file where my music is saved) and NOTHING! Frustrated big time! What do I need to do?

    iTunes the application is either installed and works or it does not. If it is working then there is no need to uninstall and reinstall it. If it does not work then Troubleshooting issues with iTunes for Windows updates contains detailed advice on repairing things when a simple reinstall won't work.
    Uninstalling & reinstalling iTunes should have no effect on the contents of the library or the media folder. Reinstalling iTunes won't fix a problem with a broken library that doesn't contain the correct information, cannot locate files etc.
    In the normal course of things the easiest way to move a library from one computer to another is to copy the entire iTunes folder from User's Music on the old computer into User's Music on the new one. Things only get more complicated if you've followed Apple's advice when running low on disk space at some point, have relocated the media folder to a new path, and thus have what is known as a split library. The migrate iTunes library post should give the relevant information in either case.
    Don't worry about uninstalling iTunes. Hopefully when you copy over the entire iTunes folder from the laptop into the new computer again it will all work as it should. If not I can give more detailed advice if you can tell me more about what is stored where on the laptop, where presumably the library still works.
    tt2

  • Can't load iphoto library copied from old computer

    I copied the photo library from my old laptop onto my new imac. The pictures are all there (LOTS) and all album data, etc. I tried launching iphoto while holding the option key. I select the iphoto library but none of the new photos come up. Did I miss step?

    I still can only view the previous pictures (one roll) that was downloaded onto iphoto even though all of my pictures (3K+) from my other computer are in the iphoto library.
    Do you have two iPhoto Library Folders? Or is these pics visible in one library, but the others are not?
    IF the latter, it sounds like a corrupted database. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library Folder allowing it to overwrite the damaged file. If not, then you'll need to create and populate a new library.
    To create and populate a new library:
    Note this will give you a working library with the same film rolls and pictures as before, however, you will lose your albums, keywords, books, calendars etc.
    Move the iPhoto Library Folder to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library Folder on your desktop and find the Originals folder. From the Originals folder drag the individual rolls to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library Folder on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption.
    Regards
    TD

  • Can't load A2 library after installing A3 trial

    I renamed A2, installed the A3 trial, it said it can't touch my A2 library. I worked in A3, created a temp library and imported some pics (left my original A2 library alone) and found it much slower on my computer, so quit and went back to launch A2. When I do, it says "The library in “/Volumes/PhotosVideosMusic/Aperture 3 Trial Library.aplibrary” cannot be loaded because it is from a newer version of Aperture." And only gives me the option to Quit.
    How do I get my A2 library to launch????????

    There is no A3 or A2 preferences, they're both using the same preference file.
    Hold the option (or alt) key and launch ap2 and then select choose Library from the resulting menu. Choose your Ap 2 Library.
    Should you use Ap 3 again, then hold the option (or alt) key while launching, this time choose the 3 Library.
    As long remember to use the option (or alt) key on launch you'll be okay.
    Regards
    TD

  • ITunes Hangs on Start and Can't Load My Library

    I started installing iTunes 11.1.1 on OS X 10.8.5 but, forgot to restart the computer.  Then, a few days later, I opened iTunes and it hung on opening.  It wouldn't even force quit.  So, I ended up having to hard restart the computer.  After that it still hung on start-up.
    Eventually, I deleted iTunes and then used "Clean My Mac" to delete a more few more stray files.  Then, I reinstalled iTunes 11.1.1.  After that, it opened with an empty iTunes folder.  The only thing listed was my purchased music from iCloud.  Then, I replaced the default iTunes folder with my original iTunes folder from about a month ago, using Time Machine. That didn't help, it still hung up at start and I had to force quit each time.
    I tried going back further in time machine (about 3 months) and the same thing happened. So, I'm pretty sure it's not the library folder.
    I also tried repairing permissions with the Disk Utility and that didn't seem to help anything either.
    Yesterday a new version of iTunes was released (11.1.2 I believe) so I upgraded to that thinking it would help, but no, I still have the same problem.
    Can anyone help me get iTunes working again with my original library?

    Where are you looking on the iPad ? Your synced music (and that which you download from iTunes directly on the iPad) should go into the Music app
    Syncing music : http://support.apple.com/kb/HT1351

  • Can't load shared library, libgpg-error missing?

    Right, so this morning I decided to try out Cinnamon. I booted into Arch, logged into GNOME, installed cinnamon from the repositories, and did a system upgrade. I then rebooted. I select Arch Linux from GRUB, everything is working fine, but GDM won't load. And there are some strange error messages I've never seen before on the screen. Hmm. So, apparently, the journal service failed to start:
    /dev/sda1: recovering journal
    /dev/sda1: clean, 260391/7782400 files, 2855892/31099729 blocks
    [ 2.896956] systemd[1]: Failed to start Trigger Flushing of Journal to Persistent Storage.
    [ 2.902798] systemd[1]: Failed to start Trigger Flushing of Journal to Persistent Storage.
    [ 2.903928] systemd[1]: Failed to start Journal Service.
    [ 2.904007] systemd[1]: Dependency failed for Trigger Flushing of Journal to Persistent Storage.
    [ 2.904798] systemd[1]: Failed to start Journal Service.
    [ 3.092906] microcode: failed to load file amd-ucode/microcode_amd_fam15h.bin
    So, I figure I need to do a bit of troubleshooting, and I need to disable GDM, since it doesn't want to start. So I boot into my installation media, arch-chroot into my newly mounted partition, and try to disable GDM with systemctl disable gdm.service. Well, apparently, systemctl is having trouble loading a shared library, because it then spits out this error message:
    systemctl: error while loading shared libraries: /usr/lib/libgpg-error.so.0: file too short
    So, I think perhaps that a library has magically gone missing and I try to reinstall it, but to no avail:
    pacman -Sv libgpg
    pacman: error while loading shared libraries: /usr/lib/libgpg-error.so.0: file too short
    I'm very confused at this point, I haven't the slightest idea what I did. Sorry about the lack of logs, I haven't found anything about this from Google or these forums. I have no idea what logs would be relevant here, as I have no idea what's going on. Any help, or suggestions on which logs may be relevant, would be highly appreciated. Thanks!

    oops.  Two follow ups, first it seems you got that before my edit to at the -l flag to the second ls, I was curious if you still had the package in your cache, whether it was the right version, and whether it was the right size (poor man's checksum (1)).  It's there, and it's the right version, but I'm curious on the size too.
    The second follow up was that I hadn't accounted for the symlink, so the second command should really be as follows
    ls -l /usr/lib/libpgp-error.so.0.10.0
    as pacman says it's too short, I'm curious *how* short.  Is it an empty file, or does it look like the right size which would indicate other corruption, or is it just short.
    EDIT (1):  I suppose while were at it we may as well get a real checksum.  Here's mine on the package cache file, yours *should* match
    $ md5sum /var/cache/pacman/pkg/libgpg-error-1.12-1-x86_64.pkg.tar.xz
    602a18784e9916e1a4d13b10de6074aa /var/cache/pacman/pkg/libgpg-error-1.12-1-x86_64.pkg.tar.xz
    If yours matches that, the cause of this problem may remain a mystery, but the solution could be to reinstall that package.  I suspect this will be the solution regardless though.  And if you have a live media it might be easiest to just use pacman from the live system with your system as a target, and reinstall libgpg-error.  If you don't have a live media, then you *might* have to uncompress the package manually.
    Last edited by Trilby (2013-07-08 19:19:52)

  • Can I load old library to new ipod?

    I lost my ipod and I'm thinking about getting a new one and I was wondering if I could put the music from the old library onto my new ipod?
    30GB 5th generation   Windows XP  

    Plug it in to load it with your library.

  • How can I load shared library in my application ?

    Hi,
    I am using J2EE application deployed on Oracle 10g application server(Linux version). I have a shared library used to access a third party software. Now my application needs to access this shared library in order to access the third party software.
    So how do I acces this shared library ???
    I have already put the path in LD_LIBRARY_PATH environment variable, but still I get following error
    05/03/11 16:06:15 java.lang.UnsatisfiedLinkError: /app/oracle/product/mid904/lib/libScansJni.so: libscans.so: cannot open shared object file: No such file or directory
    05/03/11 16:06:15 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
    05/03/11 16:06:15 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
    05/03/11 16:06:15 at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    05/03/11 16:06:15 at java.lang.System.loadLibrary(System.java:834)
    Could anybody please help ??
    Thanks
    -- Nilesh.

    LD_LIBRARY_PATH doesn't always work well on linux. Try copying the library to /usr/lib and then refreshing the cache by issuing "ldconfig -v" and verify that your library has been catalogued. If your library needs to be located in another path, you may have to edit "/etc/ld.so.conf" prior to running ldconfig.

  • How to Load 2 library files using System.loadLibrary in one .java file!!!

    Hello,
    Someone please help me. What I am trying to do is load two .DLL files in my program. Program works fine when I
    do the following way i.e. I have two .java files and in each I am loading one .DLL file. But I don't want to have
    two .java files I want to load both the .DLL files in one program.
    **************** Example.java **********
    import java.io.*;
    import java.util.*;
    public class Example
    public native int A(String in);
    static
    System.loadLibrary( "API2" );
    public static void main( String args[])
         Ex ex = new Ex();
         int r;
         r = ex.A("TEST");
    public Example()
    *****************Ex.java*****************
    public class exsysml
    public native int A(String in);
    public exsysml()
    System.loadLibrary("API3");
    The above way works. But I need only one .java file to load both the .DLL files. i.e.
    import java.io.*;
    import java.util.*;
    public class Example
    public native int A(String in);
    static
    System.loadLibrary( "API2" );
    System.loadLibrary( "API3" );     
    public static void main( String args[])
         Example ex = new Example();
         int r;
         r = ex.A("TEST");
    public Example()
    but when I do this way it doesn't work and I get a UnSatisfiedLinkage Error at ex.A("TEST"). While doing the top way it works.
    How can I fix this to just have one .java file and load both the library files as done in the bottom program but doing this program doesn't work. Any help is appreciated.
    Thanks!

    what I figured out so far is that we can only load one library file in a single class and define all the native methods present in that library in the class where we are loading it. Means we can't load multiple library files in a single class. It's just my thought else if someone provides a better solution. I may be wrong so that's why I need your help.
    Thanks

Maybe you are looking for