Results 1 to 5 of 5
- 09-25-2008, 12:51 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 1
- Rep Power
- 0
- 09-25-2008, 04:33 PM #2
To execute an executable from java use the Process and Runtime classes.
How to pass data between the two???
One way would be to could use Sockets.
- 09-26-2008, 03:48 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Something like this you have to do.
Java Code:Process p = Runtime.getRuntime().exec(path_to_executable_file);
- 09-26-2008, 06:55 AM #4
- 09-26-2008, 03:10 PM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Definitely you must handle exception on each step. Not only in this case, each time when you deal with programming it must. A quality product can never clash because of an unhandle exception. Actually in Java it's not a big issue, but in low level languages like C++ you are dead.
Similar Threads
-
convert a java binary/executable to a intermediate language
By sumit_400461 in forum Advanced JavaReplies: 1Last Post: 07-13-2008, 07:04 PM -
Execute a jar command from a java program
By apremanandh in forum New To JavaReplies: 3Last Post: 05-21-2008, 02:04 PM -
Executable Java
By eva in forum New To JavaReplies: 3Last Post: 12-30-2007, 11:38 PM -
Calling jar classes from java executable
By SteM in forum Advanced JavaReplies: 1Last Post: 11-27-2007, 08:21 AM -
Execute a new program in java
By mathias in forum Advanced JavaReplies: 1Last Post: 07-31-2007, 05:42 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks