From owner-freebsd-questions@FreeBSD.ORG Sat Mar 20 18:26:04 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5112106566C for ; Sat, 20 Mar 2010 18:26:04 +0000 (UTC) (envelope-from tom@tompurl.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 466D88FC16 for ; Sat, 20 Mar 2010 18:26:03 +0000 (UTC) Received: by fxm22 with SMTP id 22so3906227fxm.14 for ; Sat, 20 Mar 2010 11:26:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.155.1 with SMTP id g1mr1784823hbc.121.1269109562908; Sat, 20 Mar 2010 11:26:02 -0700 (PDT) In-Reply-To: References: Date: Sat, 20 Mar 2010 13:26:02 -0500 Message-ID: From: Tom Purl To: freebsd-questions Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: Trouble Installing JKD15 On A Vanilla 8.0 Installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Mar 2010 18:26:04 -0000 On Fri, Mar 19, 2010 at 10:03 AM, Warren Block wrote: > On Fri, 19 Mar 2010, Tom Purl wrote: >> First, after the port had compiled on my system for many hours, it >> crashed with an error message stating that I was "out of swap space". I >> had only devoted 128 MB of RAM to the VM at this point (I planned to >> increase it later), so I doubled that to 256 MB > > That still seems pretty small for a Java build from source. Give the VM as > much memory as the host can afford. You can always reduce that after the > build is done. > >> and re-ran "make install clean". > > There may have been a half-built work directory still in place from the > failed build. If that happens, clear it with a 'make clean'. > > For big ports like Java, it helps to break up the steps. Do just a make, > then if it builds, make install, then after that succeeds, make clean. Thanks for the advice Warren! I ended up doing the following: * Giving the VM 512 MB of RAM. I also tried with 256, but I got the same "out of swap space" error. * cd /usr/ports/java/jdk15 && make clean * make # wait 4 or 5 hours for this package alone :) * make install * make clean * make distclean This finally worked for me I didn't get any other errors. >> 1. Is Java 5 not supported on version 8 of FreeBSD? I found the >> following tip that apparently eliminates this error, but it really seems >> to be a hack to me. Is there a better way? >> >> * http://lists.freebsd.org/pipermail/freebsd-ports/2008-July/049686.html > > Don't know, but jkd16 works on 8. Except the Firefox plugin. It's now clear to me that jdk15 does work on 8. Thanks again Warren! Tom Purl