From owner-freebsd-doc@freebsd.org Mon Feb 18 21:14:12 2019 Return-Path: Delivered-To: freebsd-doc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EFA0F14EC259 for ; Mon, 18 Feb 2019 21:14:11 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [140.82.23.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5872869BC for ; Mon, 18 Feb 2019 21:14:10 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.190] (cpe-23-243-162-239.socal.res.rr.com [23.243.162.239]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id f069f79f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Mon, 18 Feb 2019 13:14:09 -0800 (PST) Subject: Re: Question for Installing Java Apache Binaries Using pkg To: Oscar Bastidas , freebsd-doc@freebsd.org References: From: Pete Wright Message-ID: <38f246ec-b958-70b4-4e5f-a03fd2553093@nomadlogic.org> Date: Mon, 18 Feb 2019 13:14:08 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: C5872869BC X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of pete@nomadlogic.org designates 140.82.23.70 as permitted sender) smtp.mailfrom=pete@nomadlogic.org X-Spamd-Result: default: False [-5.78 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MX_GOOD(-0.01)[cached: mail.nomadlogic.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.97)[-0.971,0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:140.82.16.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.50)[ip: (-8.80), ipnet: 140.82.16.0/21(-4.40), asn: 20473(0.78), country: US(-0.07)]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2019 21:14:12 -0000 On 2/17/19 1:53 AM, Oscar Bastidas wrote: > Hello, > > I would like to install the external Java library known as 'HttpClient' on > my Android tablet so that I can use it in my Java code (I use the Linux > emulator known as Termux and the ecj compiler available for it - I am > trying to do *all* of my coding on my Android tablet without touching a > 'real' computer - so far it's been working). On the Apache website ( > https://hc.apache.org/downloads.cgi), the binaries for 'HttpClient' are > available for download (I was specifically recommended HttpClient 5.0 for > my endeavors by Apache personnel), but this is where I am stuck (they also > have 'source' files available in .tar.gz and .zip formats too, just like > the binaries). > > Would you please tell me how I should proceed with using the available > binary download along with Linux's 'pkg' command? I imagine I'll need to > download the binary for starters, but where does it go (I have a hunch > where it *might* go in the Termux world, but not sure, but I don't mind > trying it for starters)? How does 'pkg' know where binaries are sitting to > open them up? Once it's in the right location, wherever that may be, can I > just execute the 'pkg install BINARY_NAME dx' command? Should I > convert/compile the binaries to 'dex' first? > > I should note that using the above paradigm for standard Termux packages > necessitates having the 'dx' at the end of the pkg installation command > (because Android's virtual machine is dalvik which I think only processes > 'dex'). Given that this is the case, should I use the the 'source' instead > of the binary and compile everything in it using Java to obtain 'dex' > files, then stick those results into the correct location in order to use > 'pkg'? > > Thanks for any insight, direction or guidance you can provide me with and > please do excuse me if my questions are naive, but I am kind of new at this > field and trying to teach myself as I go along. Hi, I think there may be some confusion on your end.  This is a mailing list for FreeBSD's documentation effort.  FreeBSD is a Unix type operating system which is fundamentally different than Linux and Android, so it doesn't look like anyone here would be able to help you. You may want to hit up a mailing list or discussion board for Android users who may be able to help. Cheers, -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA