Question for Installing Java Apache Binaries Using pkg

Pete Wright pete at nomadlogic.org
Mon Feb 18 21:14:12 UTC 2019


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 at nomadlogic.org
@nomadlogicLA



More information about the freebsd-doc mailing list