pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] JevonQ opened a new issue #3186: Can't use jPype on pulsar-client-original.jar
Date Thu, 13 Dec 2018 12:22:21 GMT
JevonQ opened a new issue #3186: Can't use jPype on pulsar-client-original.jar
URL: https://github.com/apache/pulsar/issues/3186
 
 
   Currently, I'm trying to write some test cases in Python to test against Pulsar cluster
via Java driver. I download the jar package from offical website. JPype is used to call Java
class in Python, the code is like:
   `PulsarClient_class = jpype.JClass("org.apache.pulsar.client.api.PulsarClient")`
   
   I got the following error:
   `Class PulsarClient is not found.`
   
   Then I realize that jPype might not recognize Java Interface, then I switch to use the
Implement class. I wrote the following code:
   `PulsarClient_class = jpype.JClass("org.apache.pulsar.client.impl.PulsarClientImpl")`
   But it seems jpype can not find impl package. Can anyone help on that?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message