Im new to Ruby and JRuby, but had a question:
I am currently trying to generate Java classes from RFuzz’s random.rb.
problem ( i believe) is that it random.rb uses a method contained in a c
library. I can generate the class successfully, but it throws errors
try to use it. Here are some snippets:
There are the requires as in the .rb file.
Implements the randomness engine for RFuzz
This is the error I get when I try to use the generated Java class
(FuzzEngine is the class I am calling the generated class from):
All that is included within the source of random.rb is a fuzzrnd.c, and
fuzzrnd.so file. There is also a ruby file called ext_help.rb.
I have tried renaming, and moving the .c, and .so class into my eclipse
project, etc. nothing.
any help? I imagine its an issue with trying to integrate the c library
(which contains a function that random.rb calls).