How to use Java library from sources

2014-09-02 Thread Wilker
Hello,

I'm trying to use this Java library on my project:
https://github.com/kichik/pecoff4j

But I'm still very new to the whole ecosystem, I was looking for some way
to first convert this to a jar, and then to load this jar into my Leiningen
project, I found a few posts on internet like this one:

http://www.elangocheran.com/blog/2013/03/installing-jar-files-locally-for-leiningen-2/

But they don't cover how to build the jar from the sources in first place,
and those seem a bit old.

How is a good way for me to get the pecoff4j in my project? Another detail
is that my project is a Leiningen plugin, so I need to have this dependency
shared with the plugin users.

Thanks.
---
Wilker Lúcio
http://about.me/wilkerlucio/bio
Woboinc Consultant
+55 81 82556600

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use Java library from sources

2014-09-02 Thread adrian . medina
If you can't figure out how to build the JAR, you can try copying the Java 
source code directly into your Clojure project. Leiningen allows you to 
specify :java-source-paths in your project.clj, as seen here 
(https://github.com/technomancy/leiningen/blob/master/sample.project.clj#L276). 
Then you can (:import (org.boris.pecoff4j SectionHeader .. other classes )) 
in your Clojure namespace declarations. 

On Tuesday, September 2, 2014 11:07:32 AM UTC-4, Wilker wrote:

 Hello,

 I'm trying to use this Java library on my project: 
 https://github.com/kichik/pecoff4j

 But I'm still very new to the whole ecosystem, I was looking for some way 
 to first convert this to a jar, and then to load this jar into my Leiningen 
 project, I found a few posts on internet like this one:


 http://www.elangocheran.com/blog/2013/03/installing-jar-files-locally-for-leiningen-2/

 But they don't cover how to build the jar from the sources in first place, 
 and those seem a bit old.

 How is a good way for me to get the pecoff4j in my project? Another detail 
 is that my project is a Leiningen plugin, so I need to have this dependency 
 shared with the plugin users.

 Thanks.
 ---
 Wilker Lúcio
 http://about.me/wilkerlucio/bio
 Woboinc Consultant
 +55 81 82556600
  

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use Java library from sources

2014-09-02 Thread Jony Hudson
I think if you're going to distribute a Leiningen plugin then you'll either 
need to publish pecoff4j to maven/clojars, or include the source in your 
build.


Jony


On Tuesday, 2 September 2014 16:07:32 UTC+1, Wilker wrote:

 Hello,

 I'm trying to use this Java library on my project: 
 https://github.com/kichik/pecoff4j

 But I'm still very new to the whole ecosystem, I was looking for some way 
 to first convert this to a jar, and then to load this jar into my Leiningen 
 project, I found a few posts on internet like this one:


 http://www.elangocheran.com/blog/2013/03/installing-jar-files-locally-for-leiningen-2/

 But they don't cover how to build the jar from the sources in first place, 
 and those seem a bit old.

 How is a good way for me to get the pecoff4j in my project? Another detail 
 is that my project is a Leiningen plugin, so I need to have this dependency 
 shared with the plugin users.

 Thanks.
 ---
 Wilker Lúcio
 http://about.me/wilkerlucio/bio
 Woboinc Consultant
 +55 81 82556600
  

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use Java library from sources

2014-09-02 Thread Wilker
Thanks guys, I'll try it out :)

---
Wilker Lúcio
http://about.me/wilkerlucio/bio
Woboinc Consultant
+55 81 82556600


On Tue, Sep 2, 2014 at 2:03 PM, Jony Hudson jonyepsi...@gmail.com wrote:

 I think if you're going to distribute a Leiningen plugin then you'll
 either need to publish pecoff4j to maven/clojars, or include the source in
 your build.


 Jony


 On Tuesday, 2 September 2014 16:07:32 UTC+1, Wilker wrote:

 Hello,

 I'm trying to use this Java library on my project: https://github.com/
 kichik/pecoff4j

 But I'm still very new to the whole ecosystem, I was looking for some way
 to first convert this to a jar, and then to load this jar into my Leiningen
 project, I found a few posts on internet like this one:

 http://www.elangocheran.com/blog/2013/03/installing-jar-
 files-locally-for-leiningen-2/

 But they don't cover how to build the jar from the sources in first
 place, and those seem a bit old.

 How is a good way for me to get the pecoff4j in my project? Another
 detail is that my project is a Leiningen plugin, so I need to have this
 dependency shared with the plugin users.

 Thanks.
 ---
 Wilker Lúcio
 http://about.me/wilkerlucio/bio
 Woboinc Consultant
 +55 81 82556600

  --
 You received this message because you are subscribed to the Google
 Groups Clojure group.
 To post to this group, send email to clojure@googlegroups.com
 Note that posts from new members are moderated - please be patient with
 your first post.
 To unsubscribe from this group, send email to
 clojure+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/clojure?hl=en
 ---
 You received this message because you are subscribed to the Google Groups
 Clojure group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to clojure+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to use Java library from sources

2014-09-02 Thread Maksim Karandashov
The best way: Write maven pom.xml for your Java project for automatically 
putting it to maven repo (local or not).
But it not always possible.

I think that the good way is it packaging extern Java code to JAR and 
putting it to local repo.
You can do it easly with some IDE (I prefer IntelliJ IDEA) and 
lein-localrepo plugin: https://github.com/kumarshantanu/lein-localrepo
In this way you don't need to use :java-source-paths (I suppose that it 
must be use only for internal java code in your project).

вторник, 2 сентября 2014 г., 19:07:32 UTC+4 пользователь Wilker написал:

 Hello,

 I'm trying to use this Java library on my project: 
 https://github.com/kichik/pecoff4j

 But I'm still very new to the whole ecosystem, I was looking for some way 
 to first convert this to a jar, and then to load this jar into my Leiningen 
 project, I found a few posts on internet like this one:


 http://www.elangocheran.com/blog/2013/03/installing-jar-files-locally-for-leiningen-2/

 But they don't cover how to build the jar from the sources in first place, 
 and those seem a bit old.

 How is a good way for me to get the pecoff4j in my project? Another detail 
 is that my project is a Leiningen plugin, so I need to have this dependency 
 shared with the plugin users.

 Thanks.
 ---
 Wilker Lúcio
 http://about.me/wilkerlucio/bio
 Woboinc Consultant
 +55 81 82556600
  

-- 
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
Clojure group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.