I need to execute a method in .java or .class but this class doesn't have a main function (I can't use main function  because it has no return value) I must execute this method in cmd , Is there any way to resolve this problem ?
execute method in cmd without main function
301 views Asked by Wangbo At
        	2
        	
        
	
                        
If you want to call Java class from Python and get result from it, then you should use something like
JPypeorPyjnius.See Calling Java from Python