Class cls = Class.forName("className");
ClassLoader cLoader = cls.getClassLoader();
Method main = cls.getDeclaredMethod("main", String[].class);
Method getDataNC = cls.getDeclaredMethod("getDataNc", String[].class);
Dave Tolls wrote:NetCDF_writer.getDataNc(...parameters go here...)
java.lang.ClassCastException: meteoread.NetCDF_writer cannot be cast to javax.activation.DataSource
most probably owing to the jdbc connection inside the NetCDF_writer
Object instance = NetCDF_writer.newInstance();
I got the error message: java.lang.UnsupportedOperationException: Not supported yet.
NetCDF_writer.getDataNc(id1, id2, listString, location, STime, ETime);
I can create a DataNcSource interface but I don't understand which kind of method should I use?
I do not know how should I implement the method in an interface in Netcdf_write Class which was generated by InMemoryJavaCompiler inside ComPiler Class?
I try to write NetCDF_writer Class with only strings without sql connection. Maybe it will help to avoid this error message.
I did not get any netcdf file.
I did not get any output
Beata Szabo-Takacs wrote:what is the matter with Netcdf_writer? The NetCDF_writer Class was compiled by InMemoryJavaCompiler.
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|