I am building website with Python and django. There are ome data mining classes already programmed in java. Can i use those function in djnago via anything like
Asked
Active
Viewed 659 times
1
-
I'd port them to python. – Rob Cowie Jul 10 '11 at 12:43
-
2Good question. SO seems to have gone nuts today – Rob Cowie Jul 10 '11 at 12:58
1 Answers
1
Try running Django on Jython. I believe it should be possible to integrate Java classes in such way.

Grzegorz Szpetkowski
- 36,988
- 6
- 90
- 137
-
1I was not able to read full docs but suppose i already have django running under linux. I have many python modules installed and many django apps. WIll i have recode everything in Jython is i can install jython and django , files , apps can stay same. Is that the case??? – Mirage Jul 10 '11 at 13:51
-
@user825904: That's good question. For sure you don't need recode everything, however check this answer (http://stackoverflow.com/questions/471000/jython-and-python-modules/471143#471143). – Grzegorz Szpetkowski Jul 10 '11 at 14:14
-
-
You could run a separate Jython process to use the data mining classes and then communicate between Python and Jython with [execnet](http://codespeak.net/execnet/), then you don't have to port your whole application for one feature. – 101100 Jul 10 '11 at 16:33