Java Classpath for JRuby development

Is there a way to set the Classpath for JRuby development in RubyMine (like you can in Netbeans)? We are working on a Rails project in JRuby that needs access to several JAR's (for example for the DB drivers). Right now we have solved this by copying the JARs to the lib directory of JRuby, but I'd rather have them bundled (and under control) in the project tree. I haven't found a setting for defining the classpath - is there one?

cheers
Jens-Christian

6 comments
Comment actions Permalink

Hi Jens-Christian,

RubyMine doesn't provide any special support for JRuby classpath. But as far as I know you can setup CLASSPATH environment variable in RubyMine's run configuration settings(you can fix default configuration for your project). Also may be following article will be helpfull - http://blogs.sun.com/coolstuff/entry/using_java_classes_in_jruby.

P.S: E.g Ruby plugin for IDEA gathers classpath defined in IDEA UI settings to CLASSPATH env variable and it works ok. Probably we should add some special support for classpaths in RubyMine.

0
Comment actions Permalink

ahh - the environment settings are probably "good enough" for the time being - thanks for the hint... RubyMine just has too many nooks and crannies to find all the hidden gems immediately

thanks
jc

0
Comment actions Permalink

Any suggestions how we can make them more noticeable =) ?

0
Comment actions Permalink

Which feature we should drop first : Cucumber, rspec or rails support ?

0
Comment actions Permalink

ahhhmmmm - forget it - I'm happy the way it is

0

Please sign in to leave a comment.