User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 392,072 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,175 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 2390 | Replies: 4
Reply
Join Date: May 2006
Posts: 1
Reputation: smitamutha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
smitamutha smitamutha is offline Offline
Newbie Poster

Running java command thru java program

  #1  
May 16th, 2006
Hi All,

I want to run a java command thru java program.

Can any one tell me how can i do it.

Thanks ,
Smita
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,668
Reputation: iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice iamthwee is just really nice 
Rep Power: 17
Solved Threads: 298
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Running java command thru java program

  #2  
May 17th, 2006
Originally Posted by smitamutha
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?
Member of: F-ugly code club

Join today don't delay!
Reply With Quote  
Join Date: May 2006
Posts: 1
Reputation: dasarilalitha is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
dasarilalitha dasarilalitha is offline Offline
Newbie Poster

Solution Re: Running java command thru java program

  #3  
May 17th, 2006
Originally Posted by smitamutha
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.
Reply With Quote  
Join Date: Apr 2006
Location: Mumbai, India
Posts: 351
Reputation: aniseed is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 4
aniseed's Avatar
aniseed aniseed is offline Offline
Posting Whiz

Re: Running java command thru java program

  #4  
May 17th, 2006
Originally Posted by dasarilalitha
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.
Reply With Quote  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,646
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 191
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Running java command thru java program

  #5  
May 18th, 2006
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...
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Java Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the Java Forum

All times are GMT -4. The time now is 12:05 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC