-
I sent the code to your gmail address.
2009-09-14 18:42:16 UTC in JPype
-
I tried this workaround and it did get rid of the errors like "AttributeError: 'engine.objects.DictionaryAccessor' object has no attribute 'getCount'" but it doesn't solve the more serious Java crash problem that I'm getting.
My application uses JProxy to create Python methods that are used as Java callbacks as described in the JPype user guide here...
2009-09-14 15:20:26 UTC in JPype
-
Since you're using WinXP and Python 2.5, why not use the .exe installer from here:
https://sourceforge.net/projects/jpype/files/JPype/0.5.4/JPype-0.5.4.win32-py2.5.exe/download
If that works, then the problem is either in how you're building it or in whatever minor difference there is between 0.5.4 and 0.5.4.1.
Please post your results back here.
2009-07-24 16:24:53 UTC in JPype
-
Boy do I feel dumb now! I forgot to do
startJVM(r"C:\java\jdk1.6.0_01\jre\bin\client\jvm.dll", "-ea")
before doing the steps above. I do this in my code all the time, but I forgot to do it in the interactive Python session.
It would be a big improvement to JPype if it gave an error message like "Must call startJVM first" if any other method is attempted before doing this.
2009-06-27 20:55:40 UTC in JPype
-
Boy do I feel dumb now! I forgot to do
startJVM(r"C:\java\jdk1.6.0_01\jre\bin\client\jvm.dll", "-ea")
before doing the steps above. I do this in my code all the time, but I forgot to do it in the interactive Python session.
It would be a big improvement to JPype if it gave an error message like "Must call startJVM first" if any other method is attempted...
2009-06-27 20:54:39 UTC in JPype
-
Raising priority 'cause if I don't get this solved ASAP then I'll have to abandon using JPype and I'd REALLY like to use it, if it worked.
2009-06-26 21:14:03 UTC in JPype
-
Try this to reproduce the bug:
>>> from jpype import *
>>> a = JArray(JByte)
>>> a
>>> b = a(10)
Traceback (most recent call last):
File "", line 1, in
File "C:\Python25\Lib\site-packages\jpype\_jarray.py", line 73, in _jarrayInit
_JavaArrayClass.__init__(self, _jpype.newArray(self.__class__.__javaclass__, sz)...
2009-06-26 21:12:31 UTC in JPype
-
Back in 2005 I posted a message to this forum (https://sourceforge.net/forum/forum.php?thread_id=1391722&forum_id=379372) that was never answered. I haven't used JPype much in the intervening years, but now I'm trying to use it again and getting the same problem with JArray. Here's today's example:
>>> from jpype import *
>>> a = JArray(JByte)
>>> a...
2009-06-26 18:46:15 UTC in JPype
-
Why can't I post to this forum?.
2009-06-26 18:42:52 UTC in JPype