Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
There's a whole in my java dear list group, dear list group...
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
There's a whole in my java dear list group, dear list group...
Subject
:
There's a whole in my java dear list group, dear list group...
From: "Jonathan Fleming" <
email@hidden
>
Date: Fri, 11 Jul 2003 23:08:38 +0100
OK, I've been stuck on getting runtime.exec to exec (Re: External Command Call - More Java Than WebObjects) and it is now obvious to me that there must be a great big whole in my java knowledge.
I've been trying figure out what such things as, "-f", "-a", "-o" etc are. I know it might sound obserd to you guys but it's as plain as saying, "I don't know what these are or how they work" to me. I thought these were supossed to be used as references to a long sting that would be used in the command line, but I found when I wrote: String -a = "my argument string" I found that I should have been declaring the -a option as a int or Integer... unless I was doing something wrong and I obviously was.
After a bit of diging i've found out that these types of options should be used to effectivly keep your java portable they are options that follow the POSIX convention. The clearest description of thses options i have found is this:
Command-Line Arguments warns that the use of command-line arguments in a Java program may cause that program to be unportable (that is, it will not be 100% Pure Java). If a program requires command-line arguments, then it should follow the POSIX conventions for them. The POSIX conventions are summarized here:
An option is a hyphen followed by a single alphanumeric character, like this: -o.
An option may require an argument (which must appear immediately after the option); for example, -o argument or -oargument.
Options that do not require arguments can be grouped after a hyphen, so, for example, -lst is equivalent to -t -l -s.
Options can appear in any order; thus -lst is equivalent to -tls.
Options can appear multiple times.
Options precede other nonoption arguments: -lst nonoption.
The -- argument terminates options.
The - option is typically used to represent one of the standard input streams.
but in trying to find a deeper meaning to this I now find my head is beginning to burst because I'm getting too much technical jargon when I just want what it all means in plain English. I'm no technical guru, now Java genious or WebObjects pundit, but inspite of my failings I've hung in there learning a fair amount of every process needed to become a WebObjects developer for someone who is not technically trained, simply because I love the challenge and my Mac products. But right now, however, I'm feeling incredibly stupid and too afraid to ask any further questions about the subject of External Command Calls which I am stuck on because I feel like a jerkoff. Sadly I have to do something or else I'm dead in the water and I'm not ready for that, so if someone can point me to a good tutorial that explains what POSIX is, the options I mentioned earlier (what they are , how to use them etc), I would really appreciate it. I don't know much about Unix commands or Shell commands for that matter but they look like what is used when tarring and untarring -c -v -f etc. Maybe I need to learn more about standard shell commands as I only know the basics like dir, mkdir, mv, tar, copy, basically all those you will find when you run help in say a Windows NT Shell, I don't know, someone point me in the right direction please because the frustration is eating me up.
Come on you are the guys that know this stuf, make me knowledgeable... I want to be knowledgeable!
Thanks Jonathan :^)
Knowledge is a gift that is not ours to keep, but ours to pass on for the benefit of others.
_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
Follow-Ups
:
Re: There's a whole in my java dear list group, dear list group...
From:
Chuck Hill <email@hidden>
Prev by Date:
Re: direct look-up
Next by Date:
Re: WebObjects and PostgreSql
Previous by thread:
Re: Embedding EOF into Desktop apps [was WWDC Attenders WebObjects Track]
Next by thread:
Re: There's a whole in my java dear list group, dear list group...
Index(es):
Date
Thread