Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Server usage clause fails to display under Unix

 
John Sinues
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic