Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
Calling python function from java . NEED HELP URGENT
Joined: Mar 10, 2008
Jun 04, 2009 04:05:29
I want to call
python function from
Class OR execute python file from java Class
if possible Please explain me with piece of code urgently .......
Thanks in advance,
I tried for this ... but it not giving any error and not executing also .....
public class MyJavaClass
public static void main(
String file = "/home/geeta/Install/newEclipse/NoCrashPlease/testWebProject/src/pythonPrograms/test.py" ;
Process p =Runtime.getRuntime().exec("chmod -R 777 " + file);
p = Runtime.getRuntime().exec("python " +file);
catch (Exception e)
/* test.py contain */
Joined: Mar 22, 2005
Jun 04, 2009 04:25:31
Please do not post the same question to multiple forums:
Let's continue the discussion in this
I agree. Here's the link:
subject: Calling python function from java . NEED HELP URGENT
How to run .java file from Runnable
Run a ProC or C file from Java
How to capture events from vbs script in java
compiling a file from the GUI
Problem calling python script from java.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015