Accessing static java methods in Python through jython?

I suppose you create an instance of the class and just call the method on that from com.example. Util import Foo foo = Foo() foo. Run_static_method() Assuming just doing Foo.

Run_static_method() doesn't work.

I suppose you create an instance of the class and just call the method on that. From com.example. Util import Foo foo = Foo() foo.

Run_static_method() Assuming just doing Foo. Run_static_method() doesn't work.

It works like this example: Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) Java HotSpot(TM) Client VM (Sun Microsystems Inc. ) on java1.6.0_22 Type "help", "copyright", "credits" or "license" for more information. >>> import java.

Lang >>> java.lang.System. GetProperty('user. Dir') u'/home/vinay' Note that getProperty is a static method of static class java.lang.System.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions