jashkenas / ruby-processing

Code as Art, Art as Code. Processing and Ruby are meant for each other.

Home Page:http://github.com/jashkenas/ruby-processing/wikis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't use --jruby

mcfiredrill opened this issue · comments

I'm trying to use the --jruby option so I can use some other gems in my sketch.

█▓▒░tony@kiwi░▒▓█ ~/src/ruby-processing(master)$ rp5 --jruby run my_sketch.rb
LoadError: no such file to load -- /home/tony/.rvm/gems/jruby-1.6.3/gems/ruby-processing-1.0.11/lib/core/core
require at org/jruby/RubyKernel.java:1038
(root) at /home/tony/.rvm/gems/jruby-1.6.3/gems/ruby-processing-1.0.11/lib/ruby-processing/app.rb:11
require at org/jruby/RubyKernel.java:1038
(root) at /home/tony/.rvm/gems/jruby-1.6.3/gems/ruby-processing-1.0.11/lib/ruby-processing/app.rb:6
require at org/jruby/RubyKernel.java:1038
(root) at /home/tony/.rvm/gems/jruby-1.6.3/gems/ruby-processing-1.0.11/lib/ruby-processing/runners/run.rb:5

Looks like the core.jar file is being loaded because JRUBY_APPLET is defined. Noticed the core processing libraries were removed in commit 1884cd4. What was the reason for this? Do the core libraries need to be loaded, or is that a mistake?

I copied the /core files manually for now....

@mcfiredrill is issue solved, if not see my reply to "How to load pure libraries?"

No interest in this thread that is obsolete since ruby-processing-2.1.2