From owner-freebsd-eclipse@FreeBSD.ORG Sun Jun 7 08:23:35 2009 Return-Path: Delivered-To: freebsd-eclipse@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBCC71065670 for ; Sun, 7 Jun 2009 08:23:35 +0000 (UTC) (envelope-from crahman@gmail.com) Received: from mail-pz0-f195.google.com (mail-pz0-f195.google.com [209.85.222.195]) by mx1.freebsd.org (Postfix) with ESMTP id B18338FC15 for ; Sun, 7 Jun 2009 08:23:35 +0000 (UTC) (envelope-from crahman@gmail.com) Received: by pzk33 with SMTP id 33so2182463pzk.3 for ; Sun, 07 Jun 2009 01:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=THt2cfP+C5P/j9b2gsRfzIPkofx7SzrdVhX8Zj1LyAw=; b=UEDqwr3ihGeDP/peUCehpWpWx8IQC53zVl6KkV1Zij19FgnrgFMgOPb6xLn9f4WAVI Z3j80mbFxBHBNv3k7UCWsnTPe4LPRTsvFnDxicsqFnvN+ovHQQaiu2E9pOEyrrV3abmx k6T1UpkOnwRvRdYawiFfuuabsdhxe4uDJJstw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=upu4e/AB1C6NwMXcacbeN53gRBmm2YGL/0tNSvutlvNENlH3JkiHQsZzSG2/ygUIer BUjOaQXEstc0+MypiNjK7jONi2UeLNF4S92fJqzgjnxU61kRnwOHZX0SKprFFg9YDD3d EdD7RHSYnTa9c/v00+HkOkBuwtUfTRAWqQorI= MIME-Version: 1.0 Received: by 10.115.94.1 with SMTP id w1mr8877513wal.177.1244363015244; Sun, 07 Jun 2009 01:23:35 -0700 (PDT) In-Reply-To: <1244305616.14164.4.camel@think.schlaf.bilch.com> References: <9e77bdb50906051605v1a32f047mb5a62f805a97d6f0@mail.gmail.com> <1244305616.14164.4.camel@think.schlaf.bilch.com> From: Cyrus Rahman Date: Sun, 7 Jun 2009 02:23:15 -0600 Message-ID: <9e77bdb50906070123o2e1e335exd0060cc30c9af034@mail.gmail.com> To: freebsd-eclipse@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: RCP Delta Pack files for FreeBSD X-BeenThere: freebsd-eclipse@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "FreeBSD users of eclipse EDI, tools, rich client apps & ports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Jun 2009 08:23:36 -0000 > Hi, > when I had complaints about MOZILLA_FIVE_HOME I did this: > > # > # FreeBSD-specific startup script for Eclipse Platform > # > # See: http://www.eclipse.org > # > # $FreeBSD: ports/java/eclipse/files/eclipse.in,v 1.12 2009/02/15 > 03:19:41 glewis Exp $ > # > DEFAULT_JAVA_HOME=/usr/local > ECLIPSE_HOME=/usr/local/eclipse > DEFAULT_JAVA_CMD=java > MOZILLA_FIVE_HOME=/usr/local/lib/xulrunner > LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME > export MOZILLA_FIVE_HOME LD_LIBRARY_PATH > > because firefox3 won't work. You need to install xulrunner from ports. > Hope this helps. Thanks for the suggestion, it helped me figure out what was happening. I had a project named 'appname'; it was exported into ~/appname. Because no launcher executable was placed into the exported directory ~/appname/eclipse by the export wizard, I copied /usr/local/eclipse/eclipse there. It started the application, but the application did not work correctly, even though it did work when launched from eclipse itself. As it happens, the problem was that there was a file ~/appname/eclipse/appname.ini which is needed to set the java memory requirements. This file is ignored if the application is launched from a file named 'eclipse'. However, if I instead did: cp /usr/local/eclipse/eclipse ~/appname/eclipse/appname and started the application using that launcher, appname.ini was used and everything worked ok. I did try using xulrunner instead of firefox, but in fact for me both firefox and firefox3 also worked correctly. My application simply wanted a copy of libwidget_gtk2.so to link against; I don't know if exported applications would always work with firefox but I did not, in the end, need xulrunner. So I can successfully start my application now using: MOZILLA_FIVE_HOME=/usr/local/lib/firefox $HOME/appname/eclipse/appname ***** It would be a lot easier to figure out and more generally useful if there were a way of making a delta pack that contained support for FreeBSD.