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

Video Capture Error #37

Closed ghost closed 12 years ago

ghost commented 12 years ago

I'm not sure if this is a bug, or if I just don't have things set up correctly. When I try to execute the first video capture processing sketch from the Learning Processing With Ruby example set (Chapt 16 - 02), I'm getting a processing.video.Capture.init(Unknown Source) error. Here is the full stack trace. I'm able to run the original processing version of this sketch effectively, so I can verify that the non ruby-processing execution of this sketch runs effectively. On the ruby side I'm using JRuby 1.6.2 and the latest gem release of ruby-processing 1.0.11.

ghost commented 12 years ago

I found a solution in this thread on the Processing forum. I'm using OSX 10.6. I just needed to open /Applications/Utilities/Java Preferences, and under the general tab, I needed to drag the 32 bit version of Java 6 above the 64 bit version.

moumar commented 12 years ago

you can force 32 bits execution too by creating a file $HOME/.rp5rc and putting " java_args: -d32" inside it.

Hope this helps