From owner-freebsd-questions@FreeBSD.ORG Wed Jan 9 17:24:47 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8AC07704 for ; Wed, 9 Jan 2013 17:24:47 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-oa0-f44.google.com (mail-oa0-f44.google.com [209.85.219.44]) by mx1.freebsd.org (Postfix) with ESMTP id 49FD9C1 for ; Wed, 9 Jan 2013 17:24:47 +0000 (UTC) Received: by mail-oa0-f44.google.com with SMTP id n5so1269007oag.17 for ; Wed, 09 Jan 2013 09:24:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DnUg3wWUlIMMw2oEgsUii412Kgpl8Vqa14b8ALVmyUU=; b=gdQhbQOVG6EMvIbeCLgPu9KVO5RVEvuYJy9VoSWScrf4AUdrF9OLQ6YERxs+Obzkb9 I+IaknZ0uNfhNPfCtNdeU5vIf9dpjcqOJM5Wv2L0hsWTBCQaN/vlFSPLMB26ScpyfEKA E4IY2u7giJRv9TyJlpNjEbb/t8zQvHkDnlU7Zv150vf6yqCya1sl6OST3/RcU058UTuY +7honta+rbk7X7Gw7NfUPHlbEFazfyejb9DfQWxXfbQF96GMn0C91ZnIEle9aEgmfdkO V4+9ibbJASAHMtFeZf25fE5/AwYksdlMtYS7vDZp0enTREbBWUD708eW8rUy4djw8c4l F8Fw== MIME-Version: 1.0 Received: by 10.60.6.194 with SMTP id d2mr38201000oea.49.1357752281005; Wed, 09 Jan 2013 09:24:41 -0800 (PST) Received: by 10.76.34.38 with HTTP; Wed, 9 Jan 2013 09:24:40 -0800 (PST) In-Reply-To: <50EDA296.3070607@gmail.com> References: <50ED5879.6050002@gmail.com> <50EDA296.3070607@gmail.com> Date: Wed, 9 Jan 2013 11:24:40 -0600 Message-ID: Subject: Re: openjdk6 + iced-teaweb installed, cannot open *.jnlp From: Antonio Olivares To: Volodymyr Kostyrko Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2013 17:24:47 -0000 On Wed, Jan 9, 2013 at 11:02 AM, Volodymyr Kostyrko wrote: > 09.01.2013 18:53, Antonio Olivares: > >> How do I do the suggested fix? >> As root? >> as regular user? >> i.e, how do I change the attributes. I see the fix, but don't know >> how to apply it :( > > > I changed the script to not include '-a javaws' in the last line of your > log: > > --- launcher/javaws.in 2012-11-01 18:51:04.000000000 +0200 > +++ launcher/javaws.in 2013-01-09 18:57:35.278323886 +0200 > @@ -59,6 +59,6 @@ > k=$((k+1)) > done > > -exec -a "javaws" "${COMMAND[@]}" > +exec "${COMMAND[@]}" > > exit $? > > I don't know why this works actually, maybe there's a misuse of PROGRAM_NAME > in javaws.in, i.e. PROGRAM_NAME is declared but not used in this command. > Regardless what I did with the script the only working solution for me was > removing '-a' option. > > > -- > Sphinx of black quartz, judge my vow. > --- launcher/javaws.in 2012-11-01 18:51:04.000000000 +0200 > +++ launcher/javaws.in 2013-01-09 18:57:35.278323886 +0200 > @@ -59,6 +59,6 @@ > k=$((k+1)) > done > > -exec -a "javaws" "${COMMAND[@]}" > +exec "${COMMAND[@]}" > > exit $? where does this file "launcher/javaws.in" reside? /usr/local/bin/? So I can remove the ``-a "javaws" '' from it to fix it? I can use a sed command to do it, but I don't know where it is and I am afraid to screw things up if I use find command :( Thanks for all your help. I apologize in advance for asking several times. Regards, Antonio