Paweł Ziobro | 20 Oct 2001 23:09
Picon

CURL + VC6 + JB8 problem

Hi.

I have compiled cURL source code using the Visual C++ 6.0.
Next I want to use it with programm wrote in in J++ Builder 8.
I have got this error after I had run Java program:

java.lang.UnsatisfiedLinkError: jni_init
        at CrawlerClass.CurlGlue.jni_init(Native Method)
        at CrawlerClass.CurlGlue.<init>(CurlGlue.java:133)
        at CrawlerClass.HTTPEngine.<init>(HTTPEngine.java:31)
        at CrawlerClass.CrawlerMainFrame.jbInit(CrawlerMainFrame.java:60)
        at CrawlerClass.CrawlerMainFrame.<init>(CrawlerMainFrame.java:31)
        at CrawlerClass.Crawler.<init>(Crawler.java:21)
        at CrawlerClass.Crawler.main(Crawler.java:50)
Exception in thread "main"

I think this problem is becouse dll is incorect Java dll file,
but why ?? I had done everything what is described in http://curl.haxx.se/libcurl/java/
I have not any errors while compiling and linking.
Please show me where I am doing wrong:

1) run define2java.pl and change CurlGlue.java
2) javac CurlWrite.java CurlGlue.java
3) javah -classpath e:\Crawler\CurlGlue\ -o CurlGlue.h CurlGlue
4) edit "curl-7.10.7.zip"/lib/curllib.dsw
5) add CurlGlue.h to header files in VC6 curl project
6) add javacurl.c (from java-0.2.tar.gz) to source files in VC6 curl project
7) make dll

Is it correct Java dll file ??
(Continue reading)


Gmane