Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Server usage clause fails to display under Unix Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Server usage clause fails to display under Unix" Watch "Server usage clause fails to display under Unix" New topic
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: 11404
    
  81

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: 11404
    
  81

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Server usage clause fails to display under Unix
 
Similar Threads
another Eclipse issue
Java version
unstripped java
wrapper classes
finally clause cannot complete normally ???