From owner-freebsd-java@FreeBSD.ORG Fri Jun 21 08:02:51 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3E5DA576 for ; Fri, 21 Jun 2013 08:02:51 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) by mx1.freebsd.org (Postfix) with ESMTP id CB8D010D9 for ; Fri, 21 Jun 2013 08:02:50 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UpwIo-0007UU-VQ; Fri, 21 Jun 2013 10:02:39 +0200 Received: from [81.21.138.17] (helo=ronaldradial.versatec.local) by smtp.greenhost.nl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UpwIp-0004AM-Bz; Fri, 21 Jun 2013 10:02:39 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Heiner_Strau=C3=9F?= , "Kavitha H Yogaraj" Subject: Re: FreeBSD java installation help! References: Date: Fri, 21 Jun 2013 10:02:37 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.15 (Win32) X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.0 X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.1 X-Scan-Signature: 9484ae446d4f83cee8bf28db5146d16c Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jun 2013 08:02:51 -0000 Try this. cd /usr/ports/java/openjdk7 make install make clean If the directory /usr/ports does not exist you can create it with this. portsnap fetch portsnap extract To update the ports directory to the latest version: portsnap fetch portsnap update See the online handbook for more information about ports and FreeBSD. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-portsnap.html Regards, Ronald. On Thu, 20 Jun 2013 20:07:26 +0200, Kavitha H Yogaraj wrote: > Thanks for the reply, > > I'm following these steps from this site > http://haulynjason.net/weblog/2012/10/install-opnejdk7-on-freebsd/#comment-6055 > > I can’t see Edit folder in my openJdk7 folder when I unzip it from this > URL. > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/openjdk-7.9.05_1.tbz > > Could you please help me where to find this make.conf file? > > When I use this command pkg_add -r openjdk7 > I get this error > Error: Unable to get > ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/openjdk7.tbz: > File unavailable (e.g., file not found, no access) > pkg_add: unable to fetch ' > ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/openjdk7.tbz' > by URL > > And then, when I try to mention the site name > > PACKAGESITE= > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-9-stable/ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/openjdk-7.9.05_1.tbz > I again get invalid command error. > > Could you please help me in installing java in FreeBSD? > > On Wed, Jun 19, 2013 at 2:02 PM, Heiner Strauß > wrote: > >> >> Am 19.06.2013 um 21:28 schrieb Kavitha H Yogaraj : >> >> > Hi there, >> > >> > I'm a newbie to FreeBSD, have no idea how to install java in FreeBSD >> OS. >> > In the resources available online, its said that fresh ports need to >> be >> > used, some other also say that it didn't worked. >> > >> >> Hi, >> you only need to compile and install the right port. For JDK 6 it is >> openjdk6, it will work. Please proceed as described in the handbook. >> Don't >> use parallel make jobs, it will fail with openjdk. >> >> > Could you please help me out in installing Java -headless (X11) in >> FreeBsd? >> > >> >> Building headless is an art of its own, you have to ask the openjdk >> people, it is not supported through the FreeBSD port system at the >> moment, >> at least not for JDK6. Maybe it is easier to build headless with JDK 7. >> Please inform us if you find a solution for headless, I'm very >> interested. >> Greetings. >> >> -- >> >> Heiner Strauß >> >> >> >> >> >