473,395 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

python with Java API

Hi,

I have a Java application from a company. They also provide an API in
C++ (MSW platforms only) and Java (for all platforms) for developers
that want to create their own front end. I want to use wxPython to
create a decent Unix opensource frontend.

Is it possible to Interface python to a java application easily ???

Assuming yes to above, would something like Jython or SWIG or some other
tool be required.

Any advice or pointers would be greatly appreciated.

Regards,
Brendan Simon.
Jul 18 '05 #1
4 2405
Brendan J Simon <Br**********@fastmail.fm> writes:
Hi,

I have a Java application from a company. They also provide an API in
C++ (MSW platforms only) and Java (for all platforms) for developers
that want to create their own front end. I want to use wxPython to
create a decent Unix opensource frontend.

Is it possible to Interface python to a java application easily ???

Assuming yes to above, would something like Jython or SWIG or some other
tool be required.

Any advice or pointers would be greatly appreciated.

Regards,
Brendan Simon.


I've asked this before, and the consensus answer seems to be to wrap
the Java functionality (using Java) as an XMLRPC server. Write the
Python to call it as needed.

--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Jul 18 '05 #2
Harry George wrote:
Brendan J Simon <Br**********@fastmail.fm> writes:

Hi,

I have a Java application from a company. They also provide an API in
C++ (MSW platforms only) and Java (for all platforms) for developers
that want to create their own front end. I want to use wxPython to
create a decent Unix opensource frontend.

Is it possible to Interface python to a java application easily ???

Assuming yes to above, would something like Jython or SWIG or some other
tool be required.

Any advice or pointers would be greatly appreciated.

Regards,
Brendan Simon.

I've asked this before, and the consensus answer seems to be to wrap
the Java functionality (using Java) as an XMLRPC server. Write the
Python to call it as needed.


This may be the consensus, but it is not the only possibility.
Additionally, the performance hits of RPC calls may not be acceptable.

Take a look at JPype ( http://jpype.sourceforge.net ). It is still in
the early stages of development, but shaping up quickly.

Unless you have to extend a Java class, JPype should allow you to take
full advantage of any Java library within a few weeks. In fact, if you
do not need callbacks at all, it can do so right now.

As stated above, JPype is still beta software. The developper do answer
question rather quickly, and try to be responsive in the face of bugs.

And yes, I am the main developper :)

Cheers,

Steve
Jul 18 '05 #3
Steve Menard <st**********@videotron.ca> writes:
Harry George wrote:
Brendan J Simon <Br**********@fastmail.fm> writes:
Hi,

I have a Java application from a company. They also provide an API in
C++ (MSW platforms only) and Java (for all platforms) for developers
that want to create their own front end. I want to use wxPython to
create a decent Unix opensource frontend.

Is it possible to Interface python to a java application easily ???

Assuming yes to above, would something like Jython or SWIG or some other
tool be required.

Any advice or pointers would be greatly appreciated.

Regards,
Brendan Simon.

I've asked this before, and the consensus answer seems to be to wrap
the Java functionality (using Java) as an XMLRPC server. Write the
Python to call it as needed.


This may be the consensus, but it is not the only
possibility. Additionally, the performance hits of RPC calls may not
be acceptable.

Take a look at JPype ( http://jpype.sourceforge.net ). It is still in
the early stages of development, but shaping up quickly.

Unless you have to extend a Java class, JPype should allow you to take
full advantage of any Java library within a few weeks. In fact, if you
do not need callbacks at all, it can do so right now.

As stated above, JPype is still beta software. The developper do
answer question rather quickly, and try to be responsive in the face
of bugs.

And yes, I am the main developper :)

Cheers,

Steve


Excellent. I'd had hopes for JPE, but never got it to run. I'll give
JPype a try.
--
ha************@boeing.com
6-6M21 BCA CompArch Design Engineering
Phone: (425) 342-0007
Jul 18 '05 #4
Brendan,

I would definitely go for Qt which doc is just awesome.

Personnal opinion of course.

- Sylvain

Brendan J Simon wrote:
Hi,

I have a Java application from a company. They also provide an API in
C++ (MSW platforms only) and Java (for all platforms) for developers
that want to create their own front end. I want to use wxPython to
create a decent Unix opensource frontend.

Is it possible to Interface python to a java application easily ???

Assuming yes to above, would something like Jython or SWIG or some other
tool be required.

Any advice or pointers would be greatly appreciated.

Regards,
Brendan Simon.

Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data...
1
by: bezeee | last post by:
At my work we are in the process of building a tool to test an XML based API. Basically, XML in and XML out over http. Currently, there are two engines that do all of the schema validations, xml...
46
by: Jon Perez | last post by:
Can one run a 1.5 .pyc file with the 2.x version interpreters and vice versa? How about running a 2.x .pyc using a 2.y interpreter?
14
by: Wolfgang Keller | last post by:
Hello, as a non-developer I am currently participating in an industrial "research" project to develop a so-called "web application". This application serves at the same time as middleware to...
114
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
53
by: john67 | last post by:
The company I work for is about to embark on developing a commercial application that will cost us tens-of-millions to develop. When all is said and done it will have thousands of business...
2
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part...
30
by: Stuart Turner | last post by:
Hi Everyone, I'm working hard trying to get Python 'accepted' in the organisation I work for. I'm making some good in-roads. One chap sent me the text below on his views of Python. I wondered...
25
by: abhinav | last post by:
Hello guys, I am a novice in python.I have to implement a full fledged mail server ..But i am not able to choose the language.Should i go for C(socket API) or python for this project? What are the...
17
by: MilkmanDan | last post by:
I'll be a college freshman this fall, attending Florida Institute of Tech studying electrical engineering. I was considering taking some classes in programming and computer science, and I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.