jashkenas / ruby-processing

Code as Art, Art as Code. Processing and Ruby are meant for each other.
http://github.com/jashkenas/ruby-processing/wikis
Other
1.28k stars 94 forks source link

Ruby-Processing on OS X #11

Closed jweissman closed 14 years ago

jweissman commented 14 years ago

I'm using Jruby-1.1.5 and Java-1.5.0_22 on Leopard -- perhaps they are incompatible? -- but I am not even able to run any of the examples:

rp5 run samples/getting_started.rb

Error: Some library (perhaps JRuby) was built with a later JVM version. Please use libraries built with the version you intend to use or an earlier one. Specify -w for full UnsupportedClassVersionError stack trace

(If this isn't the place for this sort of issue, please let me know.)

jashkenas commented 14 years ago

This is definitely the right place for the issue. It seems that the current vendor'd version of JRuby was built with Java 6. Is it possible for you to update your JVM, or are you on the first generation 32-bit Macbook Pro, (which is the revision that's never gotten an updated Java).

fjenett commented 14 years ago

had the same problem. i downloaded the latest jruby-complete.jar from link below and replaced the one in ruby-processing 1.0.9 (lib/core/) with it. works now for me.

http://repository.codehaus.org/org/jruby/jruby-complete/1.4.0/

jashkenas commented 14 years ago

Thanks for the tip, Florian. I downloaded and signed the 1.4.0-complete jar, and it's now on master.

rockitbaby commented 14 years ago

Thanks Florian, I had the same problem. Works now.

jweissman commented 14 years ago

Perfect, works awesome for me as well. Thanks.

meesern commented 14 years ago

Not for me :-( it makes a difference, but now I get Exception in thread "main" java.lang.NoClassDefFoundError: org/jruby/Main instead. Any ideas anyone?

meesern commented 14 years ago

Ah, fixed it by downloading 1.4.1 - possibly there was a download problem with 1.4.0.

tomeara commented 13 years ago

@meesern I had to do the same thing.