Setting CLASSPATH for JRuby console?

Hi there,

I'm trying to run a console within RubyMine and need to be able to specify the Java CLASSPATH to include some jar files that some of my gems are dependent on.
I'd rather not resort to setting the system CLASSPATH and would rather just pass it as a param to jruby.

Does anyone know how to do this?

Cheers,
Archie

3 comments
Comment actions Permalink

Hi,

There is no need in patching RubyMine classpath, instead you can specify classpath in RubyMine's run configurations. E.g. you can set CLASSPATH evn. variable in project defaults for all RunConfiguratons which will be created in your current project (see RubyMine | Run | Edit Run Configurations...) dialog

0
Comment actions Permalink

Hi Roman,

Yes that was the first thing I tried - set the variable for the Rails and Ruby environments, but when I run the console the variable isn't visible.
Am I doing something wrong?

Cheers,
Archie



Attachment(s):
rubymine_console.PNG
rubymine_config.PNG
0
Comment actions Permalink

Options in run configuration settings affects corresponding run confgiration, so they weren't applied to rails console. Please submit a feature request at http://youtrack.jetbrains.net/issues/ruby

0

Please sign in to leave a comment.