pyjnius icon indicating copy to clipboard operation
pyjnius copied to clipboard

Access Java classes from Python

Results 140 pyjnius issues
Sort by recently updated
recently updated
newest added

When trying to use booleans with Pyjnius, they get converted to integers in some situations, which causes errors. >>> import jnius >>> jnius.__version__ '1.3.0' >>> Boolean = jnius.autoclass('java.lang.Boolean') >>> Boolean("true")...

bug

while doing unit test, is there a way to read java execution output/log messages from python? im trying to use following code to read stdout but its empty. ``` f...

awaiting-reply

Hi guys, I have the following problem. I installed pyjnius (version 1.2.1) using Anaconda (with Python 3.8.1). Anaconda is really comfortable, it installs a JDK as well. As far as...

Hi, I met the following issues when I am trying to run my code: Traceback (most recent call last): File "/home/zhangxy/QA/castorini/pyserini/pyserini/eval/convert_trec_run_to_dpr_retrieval_run.py", line 22, in from pyserini.search import SimpleSearcher, get_topics File...

I am using a java library which expects me to send a `Map`. I am unable to create `Map` in java. This I what have tried: ```python >>> import jnius...

I am using the latest version: I got this encoding error: ``` Traceback (most recent call last): File "", line 1, in self.parser.extract_single(pdf_path, jpage, jarea) File "jnius\jnius_export_class.pxi", line 857, in...

awaiting-reply

Hi, when I run `python -c "import jnius; import time; print('here'); time.sleep(100)"` and interrupt it with Ctrl-C it doesn't raise the usual KeyboardInterrupt exception. Can you reproduce this, and is...

i was writing code for tts https://developer.android.com/reference/android/speech/tts/UtteranceProgressListener ```python class OnProgressListener(PythonJavaClass): __javainterfaces__ = ['android/speech/tts/UtteranceProgressListener'] _callback=None def __init__(self,callback): super().__init__() self._callback=callback @java_method('(Ljava/lang/String;)V') def onStart(self,utteranceId): print("pykivdroid-----onStart") @java_method('(Ljava/lang/String;Z)V') def onStop(self,utteranceId,interrupted): print("pykivdroid-----onStop") @java_method('(Ljava/lang/String;III)V') def onRangeStart(self, utteranceId,...

I have a Java generic class of the sorts `public class Box { ... }` I need to have objects of type `Box` in Python. I'm trying to either 1....