954,545 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Running java command thru java program

Hi All,

I want to run a java command thru java program.

Can any one tell me how can i do it.

Thanks ,
Smita

smitamutha
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 
Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita

You mean working with threads?

iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
 
Hi All, I want to run a java command thru java program. Can any one tell me how can i do it. Thanks , Smita



u can do this using a Runtime and Process classes.

dasarilalitha
Newbie Poster
1 post since May 2006
Reputation Points: 10
Solved Threads: 0
 
u can do this using a Runtime and Process classes.


Though it sounds silly using Runtime class to execute another class rather than invoking it directly.

aniseed
Posting Whiz
359 posts since Apr 2006
Reputation Points: 48
Solved Threads: 7
 

no use for Runtime (which seems to be WAY WAY overused by people in lue of native solutions that are a lot easier once you get your head around to you being working in Java rather than a scripting language). They're just Java classes...

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 
marutiskutre
Newbie Poster
2 posts since Feb 2009
Reputation Points: 4
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You