[Py4j-users] Py4j and error - "Trying to call a package"
Status: Beta
Brought to you by:
barthe
|
From: Disley, J. <Jar...@ro...> - 2012-06-13 10:26:35
|
Hello,
I am having an issue calling a static method within a Java class and
package from within Python.
The background is that the method is declared static and has no
constructor. I believe that the class / package has been imported
correctly.
I have tried all of the following approaches:
Ip = gateway.jvm.class.ConvertFunction.convert("10.10.0.0")
Klass = gateway.jvm.class.ConvertFunction()
Ip =Klass.convert("10.10.0.0")
Klass = gateway.jvm.class.ConvertFunction
Ip =Klass.convert("10.10.0.0")
Every time I get the "Trying to call a package" error. Which one of
these methods is correct?
Regards
Jareth Disley
--
Queen's Award for Enterprise and Innovation 2011
Roke Manor Research Ltd
Romsey, Hampshire, SO51 0ZN, United Kingdom
http://www.roke.co.uk
Part of the Chemring Group
Registered in England & Wales at:
Chemring Group PLC, Chemring House, 1500 Parkway,
Whiteley, Fareham, Hampshire PO15 7AF, ENGLAND.
Registered No: 267550
------------------------------------------------------------------------
The information contained in this e-mail and any attachments is
proprietary to Roke Manor Research Ltd and must not be passed to any
third party without permission. This communication is for information
only and shall not create or change any contractual relationship.
------------------------------------------------------------------------
Please consider the environment before printing this email |