<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/jpype/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/jpype/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/jpype/feature-requests/</id><updated>2011-07-18T17:25:29Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>Binaries for Python 64bit binaries in Windows</title><link href="https://sourceforge.net/p/jpype/feature-requests/10/" rel="alternate"/><published>2011-07-18T17:25:29Z</published><updated>2011-07-18T17:25:29Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1afd5e481e09b35c6acbe684e94510928dbd320d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Looking for jpype binaries of 64bit Python (2.6, 2.7) in Windows. Are there any plans to make them availabe?&lt;br /&gt;
Is there any way to build them in Windows without VS?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Improve diagnostics for PythonException</title><link href="https://sourceforge.net/p/jpype/feature-requests/9/" rel="alternate"/><published>2007-04-13T00:17:34Z</published><updated>2007-04-13T00:17:34Z</updated><author><name>Alexander Tyutyunnik</name><uri>https://sourceforge.net/u/atyutyunnik/</uri></author><id>https://sourceforge.net39da5ea1adc92fa80092cd9d57b30b72a964bef2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When PythonException is thrown, it is not always obvious what might be wrong. For example: the test class does not have the required write() method:&lt;/p&gt;
&lt;p&gt;class Test(object):&lt;br /&gt;
pass&lt;/p&gt;
&lt;p&gt;try:&lt;br /&gt;
from jpype import *&lt;br /&gt;
startJVM(getDefaultJVMPath())&lt;br /&gt;
MyStream_proxy = JClass("MyStream_proxy")&lt;br /&gt;
python_adapter = Test()&lt;br /&gt;
java_proxy = MyStream_proxy(JProxy("MyStream_adapter", inst = python_adapter))&lt;br /&gt;
java_proxy.write(5)&lt;/p&gt;
&lt;p&gt;except Exception:&lt;br /&gt;
import traceback&lt;br /&gt;
traceback.print_exc()&lt;/p&gt;
&lt;p&gt;Output:&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
File "F:\temp\jpype\bugs\3-NonInformativeErrorMessage\test.py", line 10, in ?&lt;br /&gt;
java_proxy.write(5)&lt;br /&gt;
java.lang.ExceptionPyRaisable: java.lang.RuntimeException: Python exception thrown&lt;/p&gt;
&lt;p&gt;The exception thrown by Python code is lost.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>JEP and JPype in a single process</title><link href="https://sourceforge.net/p/jpype/feature-requests/8/" rel="alternate"/><published>2005-06-21T06:25:55Z</published><updated>2005-06-21T06:25:55Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3096aac34127f151a962c212de9b0a7361419b05</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have written a very simple java class file, which invokes &lt;br /&gt;
a Python script&lt;br /&gt;
using JEP.&lt;/p&gt;
&lt;p&gt;Code snippet:-&lt;br /&gt;
-------------------&lt;br /&gt;
Jep jep = new Jep(false);&lt;br /&gt;
jep.runScript("C:\\temp\\testscript.py");&lt;br /&gt;
jep.close();&lt;/p&gt;
&lt;p&gt;Now inside this Python script I want to make Java calls &lt;br /&gt;
using JPype.&lt;br /&gt;
If I use startjvm() inside this Python script, a Runtime &lt;br /&gt;
Error (exception)&lt;br /&gt;
is thrown.&lt;br /&gt;
Also tried attachThreadToJVM(), but doesn't work, again &lt;br /&gt;
Runtime Error.&lt;/p&gt;
&lt;p&gt;The interaction shown below should happen in a single &lt;br /&gt;
process.&lt;/p&gt;
&lt;p&gt;JAVA ==&amp;gt; jep ==&amp;gt; PYTHON ==&amp;gt; jpype ==&amp;gt; JAVA&lt;/p&gt;
&lt;p&gt;As suggested by Mr. Menard can a sister method to &lt;br /&gt;
startJVM be provided, which attaches to the &lt;br /&gt;
currently running JVM instead of starting a new one.&lt;/p&gt;
&lt;p&gt;With best regards,&lt;br /&gt;
SKN (shankarnarahari@yahoo.com)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>jpype on cygwin</title><link href="https://sourceforge.net/p/jpype/feature-requests/7/" rel="alternate"/><published>2005-06-14T10:01:30Z</published><updated>2005-06-14T10:01:30Z</updated><author><name>Andrey Petrov</name><uri>https://sourceforge.net/u/darkprokoba/</uri></author><id>https://sourceforge.net3125d71381d046bdb7137fd2c20f1fcb2c553490</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I've managed to build and install the jpype extension&lt;br /&gt;
on a current cygwin install (includes Python 2.4.1)&lt;br /&gt;
It required very little tweaking but I get a core dump&lt;br /&gt;
when I try to load a Sun 1.4.2 JVM within the python&lt;br /&gt;
interpreter process, here's the program I'm trying to run:&lt;/p&gt;
&lt;p&gt;#!/usr/bin/python&lt;br /&gt;
from jpype import *&lt;br /&gt;
startJVM("c:/j2sdk1.4.2_08/jre/bin/client/jvm.dll",&lt;br /&gt;
"-ea") #core dump at the startJVM() call!!!&lt;br /&gt;
java.lang.System.out.println("hello world")&lt;br /&gt;
shutdownJVM()&lt;/p&gt;
&lt;p&gt;a python2.4.exe.stackdump file is created in the&lt;br /&gt;
current folder containing:&lt;/p&gt;
&lt;p&gt;Exception: STATUS_PRIVILEGED_INSTRUCTION at eip=0022E7B9&lt;br /&gt;
eax=004A31BA ebx=0022E7D8 ecx=77E4AFB4 edx=FFFFFFFF&lt;br /&gt;
esi=F3886E14 edi=0022E7A0&lt;br /&gt;
ebp=6E14A2A0 esp=0022E61C&lt;br /&gt;
program=C:\cygwin\bin\python2.4.exe, pid 5064, thread main&lt;br /&gt;
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023&lt;br /&gt;
Stack trace:&lt;br /&gt;
Frame     Function  Args&lt;br /&gt;
6E14A2A0  0022E7B9  (4A64616F, 25004D56, 74612073,&lt;br /&gt;
3A732520)&lt;br /&gt;
6E45504A  6C3A3A76  (7361625F, 74635F65, 3A3A726F,&lt;br /&gt;
362C3028)&lt;br /&gt;
3 [main] python2.4 5064 handle_exceptions: Error&lt;br /&gt;
while dumping state (probably corrupted stack)&lt;/p&gt;
&lt;p&gt;Any ideas of what the problem may be?&lt;br /&gt;
Are there any plans to support the Cygwin version of&lt;br /&gt;
Python at all?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;
darkprok&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>JavaException should have a javaObject() method</title><link href="https://sourceforge.net/p/jpype/feature-requests/6/" rel="alternate"/><published>2005-04-26T17:40:20Z</published><updated>2005-04-26T17:40:20Z</updated><author><name>Kevin Gilpin</name><uri>https://sourceforge.net/u/kgilpin/</uri></author><id>https://sourceforge.net40803cd794063d2ae6519784d26b9b22a8fe9ea8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The javaClass() is available but the javaObject() is&lt;br /&gt;
hidden in the __javaobject__ field which doesn't look&lt;br /&gt;
like users are supposed to use it.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Root JPackage instance</title><link href="https://sourceforge.net/p/jpype/feature-requests/5/" rel="alternate"/><published>2005-04-26T16:58:31Z</published><updated>2005-04-26T16:58:31Z</updated><author><name>Cory Sharp</name><uri>https://sourceforge.net/u/cssharp/</uri></author><id>https://sourceforge.netdad1004652b8873c4ca7769dcea043f8dca80b0d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Create one more default JPackage one level up, here&lt;br /&gt;
called "jroot", where jroot=JPackage("") then&lt;br /&gt;
java=jroot.java and javax=jroot.javax.  It is easy to&lt;br /&gt;
add support for JPackage("") in _jpackage.py by not&lt;br /&gt;
appending a "." to a package name with length 0. &lt;/p&gt;
&lt;p&gt;With that, something like c=JClass("MyClass")(args)&lt;br /&gt;
rewrites as as c=jroot.MyClass(args), which is more&lt;br /&gt;
intuitive. And, access to other top level package names&lt;br /&gt;
is easier, where doc=JPackage('org').w3c.dom.Document&lt;br /&gt;
becomes doc=jroot.org.w3c.doc.Document.&lt;/p&gt;
&lt;p&gt;I have no preference about the particular name:&lt;br /&gt;
"jimport", "jroot", or anything else is fine.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Use package/class naming conventions in class loading</title><link href="https://sourceforge.net/p/jpype/feature-requests/4/" rel="alternate"/><published>2005-04-25T14:08:14Z</published><updated>2005-04-25T14:08:14Z</updated><author><name>Kevin Gilpin</name><uri>https://sourceforge.net/u/kgilpin/</uri></author><id>https://sourceforge.net93d65d3ee5b0f36441771217b359c0058d6d1aca</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;JPype should use Java naming conventions to raise&lt;br /&gt;
errors when classes are not found. For instance&lt;/p&gt;
&lt;p&gt;JPackage('com').my.package.MyClass&lt;/p&gt;
&lt;p&gt;should raise an error if the class MyClass cannot be&lt;br /&gt;
loaded.&lt;/p&gt;
&lt;p&gt;On the other hand&lt;/p&gt;
&lt;p&gt;JPackage('com').my.package&lt;/p&gt;
&lt;p&gt;should not raise an error if com.my.package is not a class.&lt;/p&gt;
&lt;p&gt;Fast-failing like this when classes cannot be found&lt;br /&gt;
would be a big help to users trying to get their&lt;br /&gt;
classpath set up properly.&lt;/p&gt;
&lt;p&gt;The JPackage constructor can take an argument to&lt;br /&gt;
suppress this behavior in the case that the naming&lt;br /&gt;
conventions aren't followed.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Support common classpath scenarios</title><link href="https://sourceforge.net/p/jpype/feature-requests/3/" rel="alternate"/><published>2005-04-24T02:20:05Z</published><updated>2005-04-24T02:20:05Z</updated><author><name>Kevin Gilpin</name><uri>https://sourceforge.net/u/kgilpin/</uri></author><id>https://sourceforge.netb8aef8c513147e50a3c7e14760f7774e35824581</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Making it easier to start Java properly would be a big&lt;br /&gt;
improvement to JPype. I think it would be a big help to&lt;br /&gt;
users that want to use Java libraries but aren't Java&lt;br /&gt;
experts themselves.&lt;/p&gt;
&lt;p&gt;Setting up the classpath is always tricky. JPype should&lt;br /&gt;
help the user to&lt;/p&gt;
&lt;p&gt;o Add all the JAR files in a directory to the classpath&lt;br /&gt;
o Set up the classpath as necessary to call remote&lt;br /&gt;
services, e.g. Session EJBs hosted by JBoss&lt;br /&gt;
o Have a 'classpath-debug' mode to check for duplicate&lt;br /&gt;
classes in the classpath&lt;/p&gt;
&lt;p&gt;It can be hard to get user feedback on problems like&lt;br /&gt;
this because often people will just try to get it&lt;br /&gt;
working and if they fail they'll just give up.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>JPype should have functions to set up common JVM options</title><link href="https://sourceforge.net/p/jpype/feature-requests/2/" rel="alternate"/><published>2005-04-24T02:15:41Z</published><updated>2005-04-24T02:15:41Z</updated><author><name>Kevin Gilpin</name><uri>https://sourceforge.net/u/kgilpin/</uri></author><id>https://sourceforge.net616880fac91b067fa30c8e7215c8d47d2288b3f7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;JPype should provide functions to set up common JVM&lt;br /&gt;
options such as&lt;/p&gt;
&lt;p&gt;Classpath&lt;br /&gt;
System properties&lt;br /&gt;
Min and Max memory&lt;/p&gt;
&lt;p&gt;This would make it easier for users to figure out how&lt;br /&gt;
to start the JVM.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>__str__ and JArray(JByte) objects</title><link href="https://sourceforge.net/p/jpype/feature-requests/1/" rel="alternate"/><published>2004-12-21T17:26:38Z</published><updated>2004-12-21T17:26:38Z</updated><author><name>Garrett Smith</name><uri>https://sourceforge.net/u/garrett1020/</uri></author><id>https://sourceforge.net474c9e21eec7ac7f935a649421960598cedfdfef</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Python's equivalent of a Java byte array is a&lt;br /&gt;
non-unicode string. It would be very useful (and a huge&lt;br /&gt;
performance benefit) to implement __str__ in&lt;br /&gt;
py_array.cpp, at least in cases where the array type is&lt;br /&gt;
JByte. Ideally, __str__ would not make a copy of the&lt;br /&gt;
bytes, which would cut back on memory usage for large&lt;br /&gt;
arrays (e.g. reading files).&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>