How to call a static method using Java Object Gateway?

have another question on Java Object Gateway. May I know how to translate the following java statement into Java Object Gateway?

Runtime.getRuntime().exec(“dir”);

Or, in general, how do I call a static method using Java Object Gateway? I tried the following but it gives me error. (I know java.lang,Runtime is not an object, but I have no clue on how to call a static method.)

Thanks in advance!

Hi Prince,

I don’t think the Java object gateway will support static methods; at least I haven’t found a way to do it.

You’ll have to write a wrapper class that wraps the static methods.


Regards,

Jason