| Author |
Server usage clause fails to display under Unix
|
John Sinues
Ranch Hand
Joined: Feb 21, 2000
Posts: 52
|
|
I've bundled my server code into an executable JAR file. Under Windows (XP/2000), it behaves properly as shown below: Unfortunately, when I run the same code under: RH Linux (Kernal v2.4.20), Java v1.4.1_02-b06 or SunOS (v5.8), Java v1.4.1_01-b01 I receive the following output: When I type "java -?" under RH or SunOS, I receive the same output, java: No match.. However, according to the java usage clause, "-?" and "-help" are suppose to produce the same results, but they do not. Any ideas? John [ July 14, 2003: Message edited by: John Sinues ] [ July 14, 2003: Message edited by: John Sinues ] [ July 14, 2003: Message edited by: John Sinues ]
|
 |
Andrew Monkhouse
author and jackaroo
Marshal Commander
Joined: Mar 28, 2003
Posts: 10814
|
|
Hi John Simple problem: on both systems you are using csh: Obviously the c shell is interpereting the -? option. If you quote the option, the shell will not attempt to interperet it: Regards, Andrew [ July 14, 2003: Message edited by: Andrew Monkhouse ]
|
The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
|
 |
Andrew Monkhouse
author and jackaroo
Marshal Commander
Joined: Mar 28, 2003
Posts: 10814
|
|
Just for completeness: This is all the shells I have installed So I will stick with my theory that you are using the C shell. Regards, Andrew
|
 |
John Sinues
Ranch Hand
Joined: Feb 21, 2000
Posts: 52
|
|
Thanks Andrew. You are correct in that I was using a variation of csh (tcsh in my case). After changing to sh or quoting the option, e.g. '-?', everything worked fine. Thanks again, - John
|
 |
 |
|
|
subject: Server usage clause fails to display under Unix
|
|
|