L
Luis P. Mendes
Hi,
I have a Python program that needs to interact with Java as follows:
1- A website supplied me java code that is able to perform some web
services;
2- my Python program triggers some events;
3- I would like to use that java code when an event is triggered, instead of
having to recode everything in Python;
4- I know nothing about java, don't even know what .jar .class and .java
files are used for;
5- I've checked Jython.org but I don't know if it is what I was looking for,
because, preferably, I wouldn't like to have to learn Java;
6- Example: is it possible to import a java function such as connect() and
use it in my Python program directly using parameters like:
z1=value1
z2=value2
if TRUE:
connect(z1,z2) <-- java function with z1 and z2
7- is it possible to have, as other example:
var1, var2 = JAVA_FUNCTION(z1,z2)
So,my question are:
is Jython the way to do it? if not, how?
are there tutorials for extreme begginers in using another language in
Python?
Luis
I have a Python program that needs to interact with Java as follows:
1- A website supplied me java code that is able to perform some web
services;
2- my Python program triggers some events;
3- I would like to use that java code when an event is triggered, instead of
having to recode everything in Python;
4- I know nothing about java, don't even know what .jar .class and .java
files are used for;
5- I've checked Jython.org but I don't know if it is what I was looking for,
because, preferably, I wouldn't like to have to learn Java;
6- Example: is it possible to import a java function such as connect() and
use it in my Python program directly using parameters like:
z1=value1
z2=value2
if TRUE:
connect(z1,z2) <-- java function with z1 and z2
7- is it possible to have, as other example:
var1, var2 = JAVA_FUNCTION(z1,z2)
So,my question are:
is Jython the way to do it? if not, how?
are there tutorials for extreme begginers in using another language in
Python?
Luis