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
1211
votes
19 answers

How do I install a Python package with a .whl file?

I'm having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for many other package installations). However, only…
e9t
  • 15,534
  • 5
  • 23
  • 25
7
votes
1 answer

Pip install error in Mac OS(error: command '/usr/bin/clang' failed with exit status 1)

I want to install JPype1 via pip3 installation on Mac OS. $ pip3 install JPype1 However, the following error happens again and again. Collecting JPype1 Using cached…
vagent
  • 71
  • 1
  • 1
  • 3
7
votes
1 answer

How to prevent ctypes.CDLL("jvm.dll") giving "module not found" error on Windows Server 2016?

How do we get ctypes.CDLL("jvm.dll") to not find the dll and not give a "module not found" error? We have verified the paths and can get them through file "open" commands of the jvm.dll - but the exact same paths when given to ctypes gives a "module…
Praxiteles
  • 5,802
  • 9
  • 47
  • 78
7
votes
1 answer

Installing jpype in Mountain Lion

I am trying to install jpype in Mountain Lion. I followed all the steps suggested in this post: How to install JPype on OS X Lion to use with Neo4j? However, there is a glitch with Mountain Lion. I have modified the setupMacOSX() function as…
Carlos V
  • 101
  • 1
  • 5
6
votes
3 answers

Error in starting second JVM when one is already started

I am developing a client-server software in which server is developed by python. I want to call a group of methods from a java program in python. All the java methods exists in one jar file. It means I do not need to load different jars. For this…
user3376020
5
votes
1 answer

Difficulties starting JVM in Python using jpype

I have been using jpype to integrate with some java code using python lately and have been having no real issues. I am now attempting to set up my stack on a new system and am running into difficulties. I am running 32-bit Python 3.6.5 and 32-bit…
Bjorn Harpe
  • 374
  • 4
  • 13
5
votes
1 answer

How do I import user built jars in Python using JPype?

I am using JPype in Python so I can call Java functions. I am having trouble importing my own jar files. I have this jar: /home/di/eclipse_plugins/plugins/org.eclipse.birt.report.engine_4.2.1.v20120820.jar In the org.eclipse.birt.report.engine.api…
Di Zou
  • 4,469
  • 13
  • 59
  • 88
4
votes
1 answer

Jpype import cannot find module in jar

I have received the task, at work, to find a way to use some methods from an existent jar file in a Python project. I have very limited experience in Python, but I have worked with that specific jar file before (it is part of a project we are…
Cosmina Ratiu
  • 215
  • 1
  • 10
4
votes
2 answers

Error in installing JPype1 in Python 3.7 on Mac OS 10.14.2

I am getting error while installing JPype1 in my system. I am using Python 3.7. JPype1 is required as dependency for Jaydebeapi. pip install Jpype1 Following are the error message: Collecting jpype1 Using cached …
user10860718
4
votes
2 answers

Ctrl-C ends my script but it is not caught by KeyboardInterrupt exception

I have a Python script that contains a big loop reading a file and doing some stuff (I am using several packages like urllib2, httplib2 or BeautifulSoup). It looks like this : try: with open(fileName, 'r') as file : for i, line in…
Thematrixme
  • 318
  • 1
  • 4
  • 14
4
votes
2 answers

Class not found error on Jpype

I have read and searched all stack overflow .. I also found JPype class not found but it didn't help me although it is solved! I have the same problem ! I am using Mac , python 2.7.6 My both python code and A.java are on desktop. But I keep…
Jeren
  • 153
  • 2
  • 4
  • 11
4
votes
1 answer

using custom java classes with JPype: package not callable error

I'm trying to get a very simple example of using JPype (Version: 0.5.4.6) to instantiate a custom java class from within Python. It loosely follows an example: http://hustleplay.wordpress.com/2010/02/18/jpype-tutorial/ and is related to: JPype…
Ziggy Eunicien
  • 2,858
  • 1
  • 23
  • 28
4
votes
1 answer

JPype Passing args to Java

I have a java facade class I'm trying to access from python so I decided to use JPype. My facade class only has one constructor (no default) with four args public facade(String a, String b, List c, List d){ ... } I can't seem…
bnjmn
  • 4,508
  • 4
  • 37
  • 52
3
votes
1 answer

Memory leaks in Jpype with multiprocessing

I have a python code that uses a java library by means of jpype. Currently, each run of my function checks if JVM exists, and creates it if it is not the case import jpype as jp def myfunc(i): if not jp.isJVMStarted(): …
Aleksejs Fomins
  • 688
  • 1
  • 8
  • 20
3
votes
2 answers

jpype simple jar import and run main()

I'm trying to open a jar file and execute it's main function, but jpype is throwing an error that doesn't make sense to me. Here is my code: jpype.startJVM(jpype.getDefaultJVMPath(), '-Djava.class.path="%s"' % jar) CommandLine =…
David Mulder
  • 7,595
  • 11
  • 45
  • 61
1
2 3
11 12