Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: CLI Java Glitch Date: Mon, 20 Jun 2011 20:37:54 -0400 Organization: A noiseless patient Spider Lines: 23 Message-ID: References: <08-dnSujmMAaQmLQnZ2dnUVZ_q-dnZ2d@earthlink.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 21 Jun 2011 00:32:57 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="yplGUUrGzpiV4sv58weMcA"; logging-data="17003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sdmTDNQhgimtDe+7zvIQhtrm9HNndFnA=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 In-Reply-To: <08-dnSujmMAaQmLQnZ2dnUVZ_q-dnZ2d@earthlink.com> Cancel-Lock: sha1:oLqvpvTTOHegGPt0KMx3kSDfj7I= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:5449 On 06/20/2011 08:02 PM, Patricia Shanahan wrote: > > 1. Create a helloworld.bat script (I'm assuming, given the wish to > ignore case, that this is MS-Windows specific) that runs the java > command with the correct spelling of the class name. Users who run the > script could ignore case. On Vista+ I believe you can use mklink instead of a batch file. > > 2. Create a general script, javaignorecase.bat, that takes the same > parameters as the java command. It would scan the class path for > classes. If it found one that matches its class name argument ignoring > case, it would run the java command substituting the actual class name > for its class name argument and passing through the rest of the > arguments unchanged. I was going to call mine javaci, but this may fall into the egrigulous category, not sure. > > Personally, I don't like things that ignore case, but that is a far from > universal view. > > Patricia