[libcurl with Java]

By | Y2013Y2013-11M-D

** Building procedure of the libcurl-java-0.2.3 to get libcurl.jar
cited from: http://mchlearning.blogspot.kr/2011/11/java-curl.html
referred: http://www.redhat.com/archives/rhl-list/2009-May/msg02198.html

Blackboard System 의 Data Integration 절차 중 Feedfile(CSV) 를 curl 로 전송하는 부분이 있다.

이 부분을 자동화 하려면 jar 형태의 libcurl 이 필요한데… 이게 C language based building procedure 때문에 급 멘붕..

  1. Get the package of libcurl for java in some directory: http://curl.haxx.se/libcurl/java/
  2. On linux platform (or use Cygwin if the case of running on windows),  do these steps
    yum install curl curl-devel
    ./configure –prefix=/usr –libdir=/usr/lib (if you are running on x86 CPU)
    ** if you want rpm package, edit the [curl-java.spec] file

    make install
  3. Then get the curljava.jar in the package folder.

 

3,567 total views, 2 views today

댓글 남기기