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: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: =?UTF-8?B?QW5kcm9pZO+/vVdoeSBEYWx2aWs/?= Date: Thu, 02 Jun 2011 11:07:20 -0400 Organization: A noiseless patient Spider Lines: 18 Message-ID: References: <71meu69511266d561jhov9a8d16d4ko77v@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 2 Jun 2011 15:07:22 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="bAymlyY9SkaJNa8Tz2rerw"; logging-data="13811"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19D82gDTvfxqe2kGZlKhrmQ4TOHchgFTHo=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.16pre) Gecko/20110305 Lightning/1.0b3pre Thunderbird/3.1.10pre In-Reply-To: Cancel-Lock: sha1:GdvywsMEjwPnAoUiH+s/mo5nIRw= Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4894 On 06/02/2011 06:32 AM, BGB wrote: > yes, but to be fair though, it is a little less convenient in some cases > than a native binary would be, such as (AFAIK) on Linux it would be > necessary to use a shell script to wrap the call to 'java' to make it > behave more like a native program (from the shell, GNome does file > associations so will probably wrap this case). > > say, "myprogram.sh": > java -jar myprogram.jar ... If that really pisses you off to type in `java -jar', then just chmod +x the jar file and then do ./myprogram.jar. My Linux distribution at least comes with a utility that works out based on the binary file type which program it should call to execute files. -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth