• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server usage clause fails to display under Unix

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic