Questions tagged [jpype]

JPype is an effort to allow python programs full access to java class libraries

JPype is an effort to allow python programs full access to java class libraries

See http://jpype.sourceforge.net/

170 questions
0
votes
1 answer

Has anyone successfully use JPype to load the Netflix photon classes?

I built the Netflix Photon docker image from https://github.com/Netflix/photon and it works as in I am able to launch a container and run the provided java applications. On top of this I installed Python3, gcc, and JPype1-py3 but am unable to load…
Paul Jacobs
  • 430
  • 5
  • 11
0
votes
1 answer

Jpype crashing on Windows Python 2.7 with jpype.startJVM command

We are trying to connect via JDBC via Python 2.7.14 on Windows Server 2016. We just installed the latest version of Python and Java. Typing this code at the Python command line is crashing Python for us: >>> import jpype >>>…
Praxiteles
  • 5,802
  • 9
  • 47
  • 78
0
votes
0 answers

Calling custom java class from python using JPype

Getting class not found exception while trying to call java class from python using jpype. Below are version and path details: JPype version:JPype1-py3 Python: 3.6 Java: 1.8.0_171 Java file path:…
0
votes
1 answer

using boilerpipe with pyspark

I am using boilerpipe to get text out of html. However there is some issue that I have not been able to resolve. I have a list of 50k elements. I am creating an rdd of 1000 elements and then processing them and saving the resultant rdd in hdfs. The…
Ravi Ranjan
  • 353
  • 1
  • 6
  • 22
0
votes
2 answers

How to extend java classes on in Python with JPype as its interfacing mechanism with java?

I use JPype to build a SOAP client in my python based test platform. However, I need to extend a Java class to make a call like this: Like void process(Context parameter) The type Context here is a class and to give an implementation, I need to…
mahesh kamath
  • 195
  • 3
  • 11
0
votes
2 answers

Python JDBC Connection throwing JVM Issue

I am trying to connect to Impala database using Python jaydebeapi. I am facing the JVM issue when I am calling the connection class two times. Please find below my connection class and Sql_Query Class. Connection_Class: import jaydebeapi import…
YRK
  • 153
  • 1
  • 1
  • 22
0
votes
1 answer

Jpype.startjvm not working for iOS but works for Windows

This command, and the program it's part of, works on my Windows laptop but not on my MacBook Pro. It's supposed to allow me to setup the JVM to use two classes at once. This doesn't work in iOS but does in Windows: jpype.startJVM(JVMHome,…
wahjrk
  • 1
  • 2
0
votes
1 answer

Error while using ExtentReports in python webdriver script using Jpype

ExtentReports can be used in selenium java web-driver scripts to generate good and rich HTML test report. I am trying to use this in my selenium python web-driver script using JPype (JPype is an effort to allow python programs full access to java…
nd87tpra
  • 11
  • 4
0
votes
0 answers

How can write and read a java bitset from python?

I am using the chemistry development kit to calculate 'fingerprints' for chemical structures. I would like to save these in an sql database, but Im note sure what the best way to store and then read the data. I am currently using python because…
Peaksandpeaks
  • 57
  • 1
  • 8
0
votes
1 answer

JPype get numpy array from JArray

Is it possible to get a numpy array from a JArray of bytes? I need access to the raw bytes and when i try: numpy.frombuffer(jpype_object) It stays: AttributeError: 'byte[]' object has no attribute '__buffer__'
Eric Fulton
  • 133
  • 1
  • 9
0
votes
1 answer

python jdbc connection RuntimeError: Unable to load DLL

I am trying to use jaydebeapi to connect to Teradata DB but when i run my code, it gives me this error: RuntimeError: Unable to load DLL [/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries/libjvm.dylib], error =…
jxn
  • 7,685
  • 28
  • 90
  • 172
0
votes
1 answer

JPype class not found, $1 with no inner class

I have these java files: LDF1File.java LDFFile.java <-- super class which generate these class files: LDF1File.class -- there is no inner class LDF1File$1.class <-- no idea where this comes from LDFFile.class In my python code, I can import…
Eric Fulton
  • 133
  • 1
  • 9
0
votes
1 answer

Start JVM not working

I have on my comp: python 2.7- 32bit , eclipse 64-bit and java 8 64-bit. I have installed jpype -32bit for python 2.7 . Jpype is importing normally but i am facing a problem that is when i call: jpype.getDefaultJVMPath() it is returning none. also…
Shany
  • 105
  • 2
  • 11
0
votes
2 answers

JPype conflicts with django and raven

I am using jpype 0.6.1. I have written a python script to run some piece of code written in scala. Every thing is working as expected. But when I have integrated python script into my django project, I was getting some errors related to raven…
Durgesh Tanuku
  • 1,124
  • 2
  • 10
  • 26
0
votes
0 answers

Executing a Jpype file

I am trying to implement a example given in the following tutorial: enter link description here I have been trying to execute this program.However I am stuck on an step which is to "Then place the .class file in the…
johnnash
  • 1
  • 2