Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Nov 2002
    Posts
    180
    Thanks
    0
    Thanked 0 Times in 0 Posts

    using loadLibrary() in java

    in my program, i have a native method, i don't know how to use the loadLibrary method, and where to save the .dll file?
    when i run my program, i had this error:
    Can't find dependent libraries
    what is the solution?

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    I'm no java programmer but maybe this exerpt can help -
    Syntax
    public synchronized void loadLibrary( String libname )
    Parameters
    libname
    the name of the library.
    Description
    Loads the dynamic library with the specified library name. The mapping from a library name to a specific filename is done in a system-specific manner.
    First, if there is a security manager, its checkLink method is called with the filename as its argument. This may result in a security exception.

    If this method is called more than once with the same library name, the second and subsequent calls are ignored
    Omnis mico antequam dominus Spookster!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •