Results 1 to 4 of 4
Thread: calling python file from java
- 11-10-2010, 10:15 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 20
- Rep Power
- 0
-
Is there no space between .py and backup? Check the API for how to call exec. You will want to add a space or use an array of Strings. Also, you may need to swallow the streams that the process produces.
Edit: ignore the issue about space, since on re-read, I see you have one. Still if I were you I'd gobble the Streams produced by the process and even print them out. Perhaps the python code is producing an error and you're not seeing it, or perhaps your OS's buffers are so small that a small Stream is filling it and blocking it.Last edited by Fubarable; 11-10-2010 at 02:59 PM.
- 11-11-2010, 03:19 AM #3
Member
- Join Date
- Nov 2010
- Posts
- 20
- Rep Power
- 0
Thanks Fubarable. Its working fine nw... :)
-
Similar Threads
-
Problem with calling php script from java file
By eldushyant in forum Advanced JavaReplies: 1Last Post: 04-28-2010, 12:56 PM -
Jython : python for java
By cotarelo in forum New To JavaReplies: 1Last Post: 03-25-2010, 08:53 AM -
calling a jar file from within java application
By robby14 in forum Advanced JavaReplies: 3Last Post: 03-10-2010, 08:11 PM -
excecuting a jar file by calling a java class
By Lavanya.vitria in forum Advanced JavaReplies: 1Last Post: 12-13-2008, 12:11 PM -
Calling Java methods form Python
By mew in forum Advanced JavaReplies: 1Last Post: 12-21-2007, 02:30 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks