Menu

Cannot load libraries

Help
Keith
2007-09-26
2013-03-26
  • Keith

    Keith - 2007-09-26

    Hi,

    I am trying to use the CurlJ in Eclipse, but by OS is Windows XP! I have Curl for windows, including the libcurl-4.dll, but when I try and run the test CurlJ application, I get the following error:

    Exception in thread "main" org.curl.CURLError: Critical libraries couldn't be loaded
        at org.curl.CURL.error(CURL.java:1473)
        at org.curl.CURL.error(CURL.java:1408)
        at org.curl.CURL.error(CURL.java:1399)
        at org.curl.CurlGlue.error(CurlGlue.java:70)
        at org.curl.CurlGlue.<clinit>(CurlGlue.java:171)
        at test.main(test.java:32)

    Obviously the libcurl-4.dll file cannot be found and loaded. I currently have the dll in System32...any ideas whan I can do to get this working?

    Thanks in advance
    Keith

     
    • jerome_azais

      jerome_azais - 2007-12-03

      Hi keith,

      Have you run your program with :
      -Djava.library.path=the_directory_that_contains_the_library ?

      Regards,

      Jerome

       

Log in to post a comment.