cURL / Mailing Lists / curl-library / Single Mail

curl-library

make cURL bindings into JAR?

From: Thufir <hawat.thufir_at_gmail.com>
Date: Thu, 28 May 2009 00:26:10 +0000 (UTC)

I'm not clear on how to proceed with cURL for Java:

<http://curl.haxx.se/libcurl/java/>

The jar needs to be built from the makefile?

[root_at_arrakis curl-java-0.2.1]#
[root_at_arrakis curl-java-0.2.1]# ll
total 52
-rw-r--r-- 1 root root 0 2009-05-27 17:18 ?
-rw-r--r-- 1 root root 0 2009-05-27 17:18 CurlGlue.h?
-rw-rw-r-- 1 thufir thufir 192 2001-10-01 00:36 CurlWrite.java
-rw-rw-r-- 1 thufir thufir 2692 2008-01-17 10:51 define2java.pl
-rw-rw-r-- 1 thufir thufir 6433 2001-10-01 00:36 javacurl.c
-rw-rw-r-- 1 thufir thufir 2270 2008-01-17 10:55 Makefile
-rw-rw-r-- 1 thufir thufir 7242 2008-01-17 12:15 Makefile.netware
-rw-rw-r-- 1 thufir thufir 98 2001-10-01 00:36 MANIFEST
-rw-rw-r-- 1 thufir thufir 9819 2008-01-17 12:15 nwlib.c
-rw-rw-r-- 1 thufir thufir 680 2001-10-01 00:36 README
-rw-rw-r-- 1 thufir thufir 2525 2008-01-17 12:39 test.java
[root_at_arrakis curl-java-0.2.1]# make javacurl
make: *** No rule to make target `../../mingw32/curl-7.17.1/include/curl/
curl.h', needed by `CurlGlue.java'. Stop.
[root_at_arrakis curl-java-0.2.1]#
[root_at_arrakis curl-java-0.2.1]# cat README
                                  _ _ ____ _
                              ___| | | | _ \| |
                             / __| | | | |_) | |
                            | (__| |_| | _ <| |___
                             \___|\___/|_| \_\_____|

                                Java Interface

 This is not a complete implementation of a libcurl interface. I've made
the
core work and it needs additional code to be added to get the rest of the
stuff supported.

 The interface is not set yet, bring your suggestions!

 Feel free to grab the source files in here and help out!

 The 'test.java' is the actual program that uses the curl stuff.
[root_at_arrakis curl-java-0.2.1]#
[root_at_arrakis curl-java-0.2.1]# yum -y install libcurl curl
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
Package libcurl-7.19.4-5.fc10.i386 already installed and latest version
Package curl-7.19.4-5.fc10.i386 already installed and latest version
Nothing to do
[root_at_arrakis curl-java-0.2.1]#
[root_at_arrakis curl-java-0.2.1]# cat /etc/fedora-release
Fedora release 10 (Cambridge)
[root_at_arrakis curl-java-0.2.1]#

thanks,

Thufir
Received on 2009-05-28