Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!204.52.135.9.MISMATCH!newsfeed.hal-mli.net!feeder1.hal-mli.net!216.196.98.146.MISMATCH!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.westnet.com.au!news.westnet.com.au.POSTED!not-for-mail NNTP-Posting-Date: Sat, 30 Jun 2012 20:56:34 -0500 From: "Qu0ll" Newsgroups: comp.lang.java.programmer References: <4fef94eb$0$282$14726298@news.sunsite.dk> <4fefa839$0$295$14726298@news.sunsite.dk> In-Reply-To: <4fefa839$0$295$14726298@news.sunsite.dk> Subject: Re: JAR file association on Windows 7 broken Date: Sun, 1 Jul 2012 11:55:37 +1000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Newsreader: Microsoft Windows Live Mail 15.4.3555.308 X-MimeOLE: Produced By Microsoft MimeOLE V15.4.3555.308 Message-ID: Lines: 54 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 124.149.34.27 X-Trace: sv3-yVxw0nc/GInMPRyhLZ7gGIktvognv3R13M1weJ/37UiswQpDNj8KoKRfgAMy0GGKPA0xqrUJ/odxQYX!/5xNf90gQit6ZA1snMLde1bFF0QcsSdkKNcsxXCTCeASZCvfpBGYDPp4Fb3Sq/x9Fyw8JB3k+WDr!ln3TXlQb2N0FWrQ+hIPj X-Complaints-To: abuse@westnet.com.au X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3498 Xref: csiph.com comp.lang.java.programmer:15763 "Arne Vajhøj" wrote in message news:4fefa839$0$295$14726298@news.sunsite.dk... On 6/30/2012 8:55 PM, Qu0ll wrote: > "Arne Vajhøj" wrote in message > news:4fef94eb$0$282$14726298@news.sunsite.dk... > > On 6/30/2012 8:00 PM, Qu0ll wrote: >> I have somehow managed to break the file association between JAR files >> and Java on Windows 7 such that I can no longer double click on an >> executable JAR file. How can I fix it? Reinstalling the JRE has not >> helped. >> >> I can right click on a JAR file and select Open With and then select >> java.exe but there doesn't seem to be a way to specify that that >> java.exe needs the -jar command line option to run them and so this >> doesn't work. It correctly changes the JAR file icon to the Java icon >> but they still won't open on double click. > > I think it should be javaw and not java. > > And you need to get the command line right. > > http://windowstipoftheday.blogspot.com/2005/10/setting-jar-file-association.html > > > https://support.istaria.com/index.php?act=article&code=view&id=55 > > should give some hints. > > ---------------------------------- > > Thanks Arne but unfortunately they didn't solve my problem. The first > link doesn't apply to Windows 7 and both the utility and command in the > second link made no difference (so maybe they don't work in Windows 7 > either). So I still cannot double click on executable JAR files. I > think once you have chosen "Open with..." it sets the association in > concrete. In my case it has remembered an incorrect command and I > cannot see any way of overriding it. > http://www.sevenforums.com/tutorials/9154-default-programs-associate-file-type-protocol.html This does not allow you to specify a command line in the association. It seems to be just another way to get to "Open with...". -- And loving it, -Qu0ll (Rare, not extinct) _________________________________________________ Qu0llSixFour@gmail.com [Replace the "SixFour" with numbers to email me]