13 Oct 2011, 14:03
Generic-user-small

Michael McDermott (8 posts)

Does anyone know/have recommendations on best practices for setting up a Jruby project. In particular I’m interested in where to locate jars I utilizing or classes I write.

The specific app is a sinatra app, but it seems like this is a generic topic. Trolling around github, it seems like a decent approach might be something like:

/project/lib/java/.jar
/project/lib/java/classes/com/

Any thoughts?
Mike

15 Oct 2011, 01:05
Mr_sketchy_pragsmall

Ian Dees (174 posts)

Hi, Mike.

Here’s what my co-author Nick has to say on the subject:

I’d say set it up like any other Ruby project. With respect to jar files and classes, I think his suggestion is good. As of now there are no globally recommended ways to incorporate jar files into a JRuby project.

There are a couple new ways you can install jars from maven repositories. One is “gem install mvn:org.clojure:clojure” and the other is to use the classpath plugin. (See https://github.com/jruby/jruby-rack/blob/master… for example).

—Ian

15 Oct 2011, 04:57
Generic-user-small

Michael McDermott (8 posts)

Ian,
Thanks for the swift reply. I’ll take a look at the tools you and Nick reference and thanks to Nick as well.
I literally had that repo open to because of the example on jms/ActiveMQ.
Best,
Mike

  You must be logged in to comment