From owner-freebsd-java@FreeBSD.ORG Sat Feb 14 03:33:37 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9C9016A4D4 for ; Sat, 14 Feb 2004 03:33:36 -0800 (PST) Received: from lmdeliver01.st1.spray.net (lmdeliver01.st1.spray.net [212.78.202.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6488343D1D for ; Sat, 14 Feb 2004 03:33:36 -0800 (PST) (envelope-from markus.svensson2@spray.se) Received: from lmfilto02.st1.spray.net (lmfilto02.st1.spray.net [212.78.202.66]) by lmdeliver01.st1.spray.net (Postfix) with ESMTP id C60E17927B; Sat, 14 Feb 2004 12:33:34 +0100 (MET) Received: from localhost (localhost [127.0.0.1]) by lmfilto02.st1.spray.net (Postfix) with ESMTP id B280D4B82; Sat, 14 Feb 2004 12:33:34 +0100 (CET) Received: from lmsmtp02.st1.spray.net ([212.78.202.112])port 10024) with ESMTP id 21228-08; Sat, 14 Feb 2004 12:33:33 +0100 (CET) Received: from daemon (h13n1c1o1020.bredband.skanova.com [213.64.160.13]) by lmsmtp02.st1.spray.net (Postfix) with ESMTP id B2BEC161; Sat, 14 Feb 2004 12:33:33 +0100 (CET) From: "Markus Svensson" To: "'Marc van Kempen'" , Date: Sat, 14 Feb 2004 12:33:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 In-Reply-To: <200402132024.54674.marc@bowtie.nl> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Thread-Index: AcPyZxvkr+2ypFOtQpSTc87f1xRKzAAhq31Q Message-Id: <20040214113333.B2BEC161@lmsmtp02.st1.spray.net> X-Virus-Scanned: by amavisd-new at spray.net Subject: RE: Netbeans 3.6Beta runide.sh fails on FreeBSD 5.2R X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 11:33:37 -0000 Hi! Thank you for shedding some light on this. I've forwarded your both of your ideas to the Netbeans development team, and hopefully they will incorporate the suggested changes into the script. I think that we BSD'ers deserve a working launcher to. :) Best Regards, Markus Svensson > -----Original Message----- > From: Marc van Kempen [mailto:marc@bowtie.nl] > Sent: Friday, February 13, 2004 8:25 PM > To: freebsd-java@freebsd.org > Cc: Greg Lewis; Markus Svensson > Subject: Re: Netbeans 3.6Beta runide.sh fails on FreeBSD 5.2R > > > On Friday 13 February 2004 19:48, Greg Lewis wrote: > > On Fri, Feb 13, 2004 at 06:36:17PM +0100, Markus Svensson wrote: > > > I'm a member of the Netbeans 3.6 Community Acceptance Program (fancy > word > > > for bug hunter, I guess). I'm experiencing some issues with the > runide.sh > > > launcher script, which I hoped would be resolved by the Netbeans > > > developers. But it appears that it won't be fixed, since fixing the > > > script breaks it from MacOS X and Linux users. Anyone interested, > please > > > check out the discussion at > > > http://www.netbeans.org/issues/show_bug.cgi?id=39830 and perhaps > somebody > > > can explain to me what why the JDK's on different platforms don't > support > > > the same parameters? > > > > I read the bug, and it doesn't look like it has anything to do with the > > JDKs using different parameters. It looks like it has everything to do > > with different syntaxes for the expr utility. > > > > Here is the issue (from expr(1)): > > > > Unless FreeBSD 4.x compatibility is enabled, this version of expr > adheres > > to the POSIX Utility Syntax Guidelines, which require that a leading > > argument beginning with a minus sign be considered an option to the > > program. The standard -- syntax may be used to prevent this > > interpretation. > > > > e.g. > > > > > expr -J-Xms24m : '-J\(.*\)' > > > > expr: illegal option -- J > > usage: expr [-e] expression > > > > However, note the first part of the quote from the man page! So, a > > possibly solution is for runide.sh to set the EXPR_COMPAT environment > > > > variable. Then things will work, e.g.: > > > env EXPR_COMPAT=1 expr -J-Xms24m : '-J\(.*\)' > > > > -Xms24m > > > > So, I would suggest adding these two lines to the script: > > > > EXPR_COMPAT=1 > > export EXPR_COMPAT > > > > Then it will (hopefully) work on FreeBSD. > > > > I will note strongly that its Linux and OSX which are broken in this > > respect though. FreeBSD is POSIX compliant, they are not. > > Another possible solution, that also works on Mac OSX and Linux is: > > expr X-J-Xms24m : 'X-J\(.*\)' > > Regards, > Marc. > > .