Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , ,

Sponsored Links



Command Line Arguments in java

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 22-02-2010
Member
 
Join Date: Feb 2010
Posts: 2
question Command Line Arguments in java

Hi

I am looking for a sample code for doing the stuff
java test -d 5

I am trying to write a code with optional arguments like -d=5 or --depth=5 depending upon which i can carry my work

For any help Thanks in advance
Reply With Quote
  #2  
Old 22-02-2010
EINSTEIN_007's Avatar
Member
 
Join Date: Dec 2007
Posts: 1,907
Re: Command Line Arguments in java

Maybe the discussion made in this topic will assit you - What are Command-Line Arguments in Java?
Reply With Quote
  #3  
Old 22-02-2010
Member
 
Join Date: Feb 2010
Posts: 2
Re: Command Line Arguments in java

Quote:
Originally Posted by einstein_007 View Post
Maybe the discussion made in this topic will assit you - What are Command-Line Arguments in Java?


thanks for the try
but as i mentioned earlier i want something like

java ClassName -d=4 Filename

Where className is the name of class from where execution will start
-d is predefined command line argument for which we are passing vallue 4
& filename is the name of some other file on which i want to operate

I know hot to get filename or filenames using args variable but what i want to know is that how can i declare -d as a command line variable.

Thanks once again,
Vipul
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Command Line Arguments in java"
Thread Thread Starter Forum Replies Last Post
Windows Phone 7 Error: Connection failed because of invalid command-line arguments Saqlain Portable Devices 3 28-10-2010 01:16 PM
What are Command-Line Arguments in Java? Beter 2 Burn Out Software Development 8 20-02-2010 03:37 PM
I/O from the Command Line in Java Damien25 Software Development 5 19-02-2010 12:22 AM
PHP command line arguments Sori Software Development 3 24-09-2009 01:45 PM
How to get command line arguments for windows application in c# Aaryn Software Development 2 08-07-2009 01:11 AM


All times are GMT +5.5. The time now is 05:21 AM.