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
2 answers

JPype 1-0.6.1 install error on Ubuntu 14.04.4 LTS Vagrant Box

I've been looking all over for possible solutions and seem to have run out. I'm trying to install JPype as I need it for this boiler pipe package... https://github.com/ptwobrussell/python-boilerpipe ...to support this tutorial…
0
votes
1 answer

jpype._jexception.ExceptionPyRaisable: java.lang.Exception: Class Sample not found

I am using following code Snippet to invoke the function present in jar file. but i am unable to connect the class. Development Env: Python: Python27,32bit jpype Version(JPype-0.5.4.2.win32-py2.7.exe) Java: jre1.8.0_60,32bit. Java Code: public…
0
votes
1 answer

Class not found .jar file is not loaded in Python

I am unable to load .jar file for my python code, Here is my code for default.py from quickstart import HelloWorld import jpype import os.path path…
0
votes
1 answer

Python can't connect to Oracle Database, close_fds is not supported

I have this small script which tryes to connect to a server running a oracle database (11g). import os import sys import jpype import jaydebeapi if("JAVA_HOME" not in os.environ): os.environ["JAVA_HOME"] = "c:\Program…
ap0
  • 1,083
  • 1
  • 12
  • 37
0
votes
1 answer

Get a lot of errors (Exceptions) while trying to call Java-classes (Neo4j) with JPype

I'm trying to work with Java and Python Bridge JPype, but also with Neo4j (which is a graph database). When I try to run a simple Java-Program with JPYPE, there are no Problems. import jpype as jp jp.startJVM(jp.getDefaultJVMPath(),…
newbie91
  • 11
  • 2
0
votes
1 answer

Is -cp option not working in JPype?

I am using jpype with Python 2.7 (jpype distribution from the university of california) and I'm trying to use a Java class from a jar file. It works fine if I start the JVM with startJVM(getDefaultJVMPath(), "-ea",…
user2035039
  • 961
  • 3
  • 16
  • 30
0
votes
0 answers

java.lang.Exception: Class A not found

Help! I'm trying to create a custom class using Jpype. I'm running 64 bit python and 64 bit jdk on a mac. This is the error I am getting: `jpype._jexception.ExceptionPyRaisable: java.lang.Exception: Class A not found ` I have looked at the…
0
votes
1 answer

Error Installing JPype - Permission Denied after jni.h not found

This is my first post on StackOverflow. I'm trying to install JPype. I have looked at the tutorials and forums about this online. However, I am not able to successfully complete the installation. This is the error I'm getting: In file included…
0
votes
1 answer

how to find classpath in project written in netbeans to use in jpype

I have a public class Stm: package stm; import zemberek.morphology.apps.TurkishMorphParser; import zemberek.morphology.parser.MorphParse; import java.io.IOException; import java.util.List; public class Stm { …
Jeren
  • 153
  • 2
  • 4
  • 11
0
votes
0 answers

Removing references to Java object in JPype

I am trying to destroy a Java object in JPype in order for garbage collection to manage the heap space, at the moment the heap space usage just keeps growing until an out of memory error is thrown. I am re-allocating the object name inside a loop,…
Getafix
  • 121
  • 4
0
votes
2 answers

Python JPype integration

I am using JPype The following is the code i am trying to use from jpype import * startJVM("C:\Program Files\Java\jdk1.6.0_14\jre\bin\client\jvm.dll","-ea") java.lang.System.out.println("hai") shutdownJVM() It is giving error in the execution of…
Rajesh Kumar J
  • 4,745
  • 6
  • 26
  • 25
0
votes
2 answers

Fatal error: jni.h: No such file or directory while installing jPype

I am trying to install JPype on Ubuntu 13.04. I have Oracle Java 1.7 installed. But when I do so, I get the following error: src/native/common/include/jpype.h:45:17: fatal error: jni.h: No such file or directory Unlike a lot of similar questions on…
w2lame
  • 2,774
  • 6
  • 35
  • 48
0
votes
0 answers

jpype - diactric signs cause UnicodeDecodeError

I've recently started using jpype and it worked nice so far but when I tried to pass a string with polish diacritic sings (ą,ć,ó - stuff like that) as a parameter it throws UnicodeDecodeError. Even java.lang.System.out.println("Mąka") throws…
0
votes
1 answer

JPype: how to convert the boolean value from python to java

I want to run java class in my python code and I use the tool JPype. I have a java method with a boolean argument. It works in java code but when I call it in python, I get the error message: RuntimeError: No matching overloads found. at…
user19881219
  • 317
  • 2
  • 16
0
votes
2 answers

Installing Stanford Parser's Python interface: error: command 'gcc' failed with exit status 1 rake aborted

I'd like to install the stanford parser's python interface. http://projects.csail.mit.edu/spatial/Stanford_Parser When running rake setup to install jpype first, I keep ge In file included from…
Sadık
  • 4,249
  • 7
  • 53
  • 89
1 2 3
11
12