Home » Developer & Programmer » JDeveloper, Java & XML » command line arguments...
command line arguments... [message #498162] Wed, 09 March 2011 01:05 Go to next message
chanveil
Messages: 22
Registered: December 2010
Junior Member
Hi,
I am having trouble in passing < symbol as a command line argument. I have to pass file name after that < symbol from which my program will take the input.
but when i pass this and print all the command line paramters in the main function it does not print < than sign and any argument that is written after that.....

But when i pass the arguments using netbeans IDE by setting the project properties it works perfectly.

here is the command i am using to run the program....

java EightPuzzle -s BreadthFirst < file_that_takes_14_moves_to_solve

the file name "file_that_takes_14_moves_to_solve" and < than symbol is not printed when i pass it through command line.... but it does when i pass it through netbeans by setting the project properties......

any help will be highly appreciated.

Regards
Re: command line arguments... [message #498166 is a reply to message #498162] Wed, 09 March 2011 01:13 Go to previous message
Michel Cadot
Messages: 67919
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Previous Topic: Unable to access URL using HttpURLConnection
Next Topic: duplicate records after xml extract (2 threads merged by bb)
Goto Forum:
  


Current Time: Sat Jul 24 15:29:59 CDT 2021