> I can't quite catch you..
(under bash)
export CLASSPATH=/usr/share/java/netcdf-2.2.22.jar
ruby script (lets call it .ncf.rb):
import 'ucar.nc2.NetcdfFile' # <- this fails, but the
netcdf-2.2.22.jar contains NetcdfFile.class in the ucar/nc2 path);
f = NetcdfFile.open('/home/vladimir/tmp/download/ecmwf/
output01.nc')
# eof
if I run:
java -jar ~/app/xruby/xruby-0.3.2.jar netcdf-xruby.rb
i get:
Exception in thread "main" Couldn't find class ucar.nc2.NetcdfFile
Basially, I am trying to load java class (in xruby script) from .jar
file.
Vlad