This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Servlets and the fly likes JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "JSP" Watch "JSP" New topic


siddhartha muthiah

Joined: Aug 03, 2001
Posts: 1
Can anyone give me a solution on how to run a command like:
java Test test.xml test.html
i.e executing a class Test with arguments as test.xml(input) and test.html(output).
If someone has a solution for this pls. Help me Out
M. Siddhartha
Associate Consultant,
Chain-Sys (I) Pvt. Ltd.
Solution that drives the business

<B>M. Siddhartha</B><BR> <A HREF="" rel="nofollow"></A> <BR>Associate Consultant,<BR>Chain-Sys (I) Pvt. Ltd.<BR><I> Solution that drives the business </I>
Jared Krull
Ranch Hand

Joined: Sep 28, 2001
Posts: 32
>>java Test test.xml test.html
I guess you mean command arguments that are passed to the main function. You will recieve an array of strings. Cant remeber (I am in work) if the first arg is arg[0] or arg[1]. Play around with it.

C programmer gone astray
I agree. Here's the link:
subject: JSP