TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pyjnius: Accessing Java classes from Python

61 pointsby txprogalmost 13 years ago

9 comments

mahmoudimusalmost 13 years ago
This is pretty much a perfect example of when to leverage import hooks.
评论 #4409037 未加载
__mharrison__almost 13 years ago
Interesting. It would be great to see some docs touching on pros/cons vs jython, jpype, etc<p>I for one am interested in keeping everything in cpython if possible. But I currently have a web service in jython...
tehansenalmost 13 years ago
Deocumentation: <a href="http://pyjnius.readthedocs.org/en/latest/index.html" rel="nofollow">http://pyjnius.readthedocs.org/en/latest/index.html</a>
评论 #4407965 未加载
jpdusalmost 13 years ago
Looks good!<p>Has anyone tried this for accessing a Java Socket API? (e.g. Interactive Brokers API) Im currently using Jython but would love to switch to "real" Python, unfortunately i am still a noob when it comes to get these things working..
评论 #4408443 未加载
jnazarioalmost 13 years ago
what's wrong with JCC?<p><a href="http://lucene.apache.org/pylucene/jcc/index.html" rel="nofollow">http://lucene.apache.org/pylucene/jcc/index.html</a><p>i have used it a lot to generate JNI bindings for other code via a simple Makefile template (list JARs and packages, alter names and versions, and poof). it works quite often, but it does run into some wonky C++ code it can't quite figure out.<p>still, pretty easy. one example are some (work-private) mahout bindings.
3amOpsGuyalmost 13 years ago
Does this mean we now have a convenient way to speak JMX from python? That would be very handy!
kbdalmost 13 years ago
How are generics handled?
koenigdavidmjalmost 13 years ago
How does it handle the two types of exception?
评论 #4408734 未加载
bendemottalmost 13 years ago
Very promising, thanks for the great work!