NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hello, I know my current problem has to do with jruby and jruby integration rather than netcdf-java, but maybe someone in the list has experience in working with jruby and netcdf. If not, just forget the question! I´m trying to call netcdf-java through jruby. I have java-7, jruby 1.6.7.2 and netcdf-4.2. I´ve managed to create dimensions and variables without problem. Now I´m trying to write data to a variable that was created with one dimension of size 5. When I call the write method, passing an Array created as [0,1,2,3,4].to_java(Java::int) I get the following error: no method 'write' for arguments (org.jruby.RubyString,org.jruby.java.proxies.ArrayJavaProxy) on Java::UcarNc2::NetcdfFileWriteable. I´m pretty sure that the problem is the convertion of the ruby array to java array. Can anybody help? -- Rodrigo Botafogo Integrando TI ao seu negócio
netcdf-java
archives: