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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
Hi keith,
Have you run your program with :
-Djava.library.path=the_directory_that_contains_the_library ?
Regards,
Jerome