How To Install JDK on FreeBSD
To install OpenJDK® 8 package use the pkg utility:
This OpenJDK implementation requires a few file systems to be mounted for full functionality. Run these commands to perform the required mounts immediately:
To make this change permanent, we must add these mount points to the /etc/fstab file. Open the file to edit now:
perform this command to confirm your env.
Lastly, Make sure that java can be used.
$ sudo pkg install openjdk8
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 31 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
openjdk8: 8.144.1
libXtst: 1.2.3
recordproto: 1.14.2
libXi: 1.7.9,1
xproto: 7.0.31
libXfixes: 5.0.3
libX11: 1.6.5,1
libxcb: 1.12_2
libXdmcp: 1.1.2
libXau: 1.0.8_3
libpthread-stubs: 0.4
kbproto: 1.0.7
fixesproto: 5.0
libXext: 1.3.3_1,1
xextproto: 7.3.0
inputproto: 2.3.2
libXrender: 0.9.10
renderproto: 0.11.1
libXt: 1.1.5,1
libSM: 1.2.2_3,1
libICE: 1.0.9_1,1
fontconfig: 2.12.1,1
freetype2: 2.8
dejavu: 2.37
mkfontscale: 1.1.2
libfontenc: 1.1.3_1
mkfontdir: 1.0.7
javavmwrapper: 2.5_2
java-zoneinfo: 2017.b
giflib: 5.1.4
alsa-lib: 1.1.2
Number of packages to be installed: 31
The process will require 198 MiB more space.
64 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/31] Fetching openjdk8-8.144.1.txz: 100% 57 MiB 19.8MB/s 00:03
[2/31] Fetching libXtst-1.2.3.txz: 100% 19 KiB 19.3kB/s 00:01
[3/31] Fetching recordproto-1.14.2.txz: 100% 3 KiB 3.2kB/s 00:01
[4/31] Fetching libXi-1.7.9,1.txz: 100% 117 KiB 120.3kB/s 00:01
[5/31] Fetching xproto-7.0.31.txz: 100% 59 KiB 60.2kB/s 00:01
[6/31] Fetching libXfixes-5.0.3.txz: 100% 14 KiB 14.4kB/s 00:01
[7/31] Fetching libX11-1.6.5,1.txz: 100% 2 MiB 1.7MB/s 00:01
[8/31] Fetching libxcb-1.12_2.txz: 100% 984 KiB 1.0MB/s 00:01
[9/31] Fetching libXdmcp-1.1.2.txz: 100% 14 KiB 14.2kB/s 00:01
[10/31] Fetching libXau-1.0.8_3.txz: 100% 11 KiB 11.5kB/s 00:01
[11/31] Fetching libpthread-stubs-0.4.txz: 100% 1 KiB 1.0kB/s 00:01
[12/31] Fetching kbproto-1.0.7.txz: 100% 122 KiB 125.1kB/s 00:01
[13/31] Fetching fixesproto-5.0.txz: 100% 10 KiB 10.2kB/s 00:01
[14/31] Fetching libXext-1.3.3_1,1.txz: 100% 92 KiB 93.7kB/s 00:01
[15/31] Fetching xextproto-7.3.0.txz: 100% 21 KiB 21.9kB/s 00:01
[16/31] Fetching inputproto-2.3.2.txz: 100% 15 KiB 15.2kB/s 00:01
[17/31] Fetching libXrender-0.9.10.txz: 100% 27 KiB 27.2kB/s 00:01
[18/31] Fetching renderproto-0.11.1.txz: 100% 15 KiB 15.4kB/s 00:01
[19/31] Fetching libXt-1.1.5,1.txz: 100% 458 KiB 469.1kB/s 00:01
[20/31] Fetching libSM-1.2.2_3,1.txz: 100% 21 KiB 22.0kB/s 00:01
[21/31] Fetching libICE-1.0.9_1,1.txz: 100% 89 KiB 91.2kB/s 00:01
[22/31] Fetching fontconfig-2.12.1,1.txz: 100% 349 KiB 357.5kB/s 00:01
[23/31] Fetching freetype2-2.8.txz: 100% 657 KiB 672.5kB/s 00:01
[24/31] Fetching dejavu-2.37.txz: 100% 2 MiB 2.5MB/s 00:01
[25/31] Fetching mkfontscale-1.1.2.txz: 100% 16 KiB 16.1kB/s 00:01
[26/31] Fetching libfontenc-1.1.3_1.txz: 100% 19 KiB 19.6kB/s 00:01
[27/31] Fetching mkfontdir-1.0.7.txz: 100% 3 KiB 3.5kB/s 00:01
[28/31] Fetching javavmwrapper-2.5_2.txz: 100% 16 KiB 16.5kB/s 00:01
[29/31] Fetching java-zoneinfo-2017.b.txz: 100% 72 KiB 73.6kB/s 00:01
[30/31] Fetching giflib-5.1.4.txz: 100% 74 KiB 76.3kB/s 00:01
[31/31] Fetching alsa-lib-1.1.2.txz: 100% 422 KiB 432.1kB/s 00:01
Checking integrity... done (0 conflicting)
[1/31] Installing xproto-7.0.31...
[1/31] Extracting xproto-7.0.31: 100%
[2/31] Installing libXdmcp-1.1.2...
[2/31] Extracting libXdmcp-1.1.2: 100%
[3/31] Installing libXau-1.0.8_3...
[3/31] Extracting libXau-1.0.8_3: 100%
[4/31] Installing libpthread-stubs-0.4...
[4/31] Extracting libpthread-stubs-0.4: 100%
[5/31] Installing libxcb-1.12_2...
[5/31] Extracting libxcb-1.12_2: 100%
[6/31] Installing kbproto-1.0.7...
[6/31] Extracting kbproto-1.0.7: 100%
[7/31] Installing libX11-1.6.5,1...
[7/31] Extracting libX11-1.6.5,1: 100%
[8/31] Installing fixesproto-5.0...
[8/31] Extracting fixesproto-5.0: 100%
[9/31] Installing xextproto-7.3.0...
[9/31] Extracting xextproto-7.3.0: 100%
[10/31] Installing freetype2-2.8...
[10/31] Extracting freetype2-2.8: 100%
[11/31] Installing libfontenc-1.1.3_1...
[11/31] Extracting libfontenc-1.1.3_1: 100%
[12/31] Installing libXfixes-5.0.3...
[12/31] Extracting libXfixes-5.0.3: 100%
[13/31] Installing libXext-1.3.3_1,1...
[13/31] Extracting libXext-1.3.3_1,1: 100%
[14/31] Installing inputproto-2.3.2...
[14/31] Extracting inputproto-2.3.2: 100%
[15/31] Installing libICE-1.0.9_1,1...
[15/31] Extracting libICE-1.0.9_1,1: 100%
[16/31] Installing mkfontscale-1.1.2...
[16/31] Extracting mkfontscale-1.1.2: 100%
[17/31] Installing recordproto-1.14.2...
[17/31] Extracting recordproto-1.14.2: 100%
[18/31] Installing libXi-1.7.9,1...
[18/31] Extracting libXi-1.7.9,1: 100%
[19/31] Installing renderproto-0.11.1...
[19/31] Extracting renderproto-0.11.1: 100%
[20/31] Installing libSM-1.2.2_3,1...
[20/31] Extracting libSM-1.2.2_3,1: 100%
[21/31] Installing fontconfig-2.12.1,1...
[21/31] Extracting fontconfig-2.12.1,1: 100%
Running fc-cache to build fontconfig cache...
/usr/local/share/fonts: skipping, no such directory
/usr/local/lib/X11/fonts: skipping, no such directory
/var/db/fontconfig: cleaning cache directory
fc-cache: succeeded
[22/31] Installing mkfontdir-1.0.7...
[22/31] Extracting mkfontdir-1.0.7: 100%
[23/31] Installing libXtst-1.2.3...
[23/31] Extracting libXtst-1.2.3: 100%
[24/31] Installing libXrender-0.9.10...
[24/31] Extracting libXrender-0.9.10: 100%
[25/31] Installing libXt-1.1.5,1...
[25/31] Extracting libXt-1.1.5,1: 100%
[26/31] Installing dejavu-2.37...
[26/31] Extracting dejavu-2.37: 100%
[27/31] Installing javavmwrapper-2.5_2...
[27/31] Extracting javavmwrapper-2.5_2: 100%
[28/31] Installing java-zoneinfo-2017.b...
[28/31] Extracting java-zoneinfo-2017.b: 100%
[29/31] Installing giflib-5.1.4...
[29/31] Extracting giflib-5.1.4: 100%
[30/31] Installing alsa-lib-1.1.2...
[30/31] Extracting alsa-lib-1.1.2: 100%
[31/31] Installing openjdk8-8.144.1...
Extracting openjdk8-8.144.1: 100%
Message from freetype2-2.8:
The 2.7.x series now uses the new subpixel hinting mode (V40 port's option) as
the default, emulating a modern version of ClearType. This change inevitably
leads to different rendering results, and you might change port's options to
adapt it to your taste (or use the new "FREETYPE_PROPERTIES" environment
variable).
The environment variable "FREETYPE_PROPERTIES" can be used to control the
driver properties. Example:
FREETYPE_PROPERTIES=truetype:interpreter-version=35 \
cff:no-stem-darkening=1 \
autofitter:warping=1
This allows to select, say, the subpixel hinting mode at runtime for a given
application.
The controllable properties are listed in the section "Controlling FreeType
Modules" in the reference's table of contents
(/usr/local/share/doc/freetype2/reference/ft2-toc.html, if documentation was installed).
Message from dejavu-2.37:
Make sure that the freetype module is loaded. If it is not, add the following
line to the "Modules" section of your X Windows configuration file:
Load "freetype"
Add the following line to the "Files" section of X Windows configuration file:
FontPath "/usr/local/share/fonts/dejavu/"
Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
Message from openjdk8-8.144.1:
======================================================================
This OpenJDK implementation requires fdescfs(5) mounted on /dev/fd and
procfs(5) mounted on /proc.
If you have not done it yet, please do the following:
mount -t fdescfs fdesc /dev/fd
mount -t procfs proc /proc
To make it permanent, you need the following lines in /etc/fstab:
fdesc /dev/fd fdescfs rw 0 0
proc /proc procfs rw 0 0
======================================================================
This OpenJDK implementation requires a few file systems to be mounted for full functionality. Run these commands to perform the required mounts immediately:
$ sudo mount -t fdescfs fdesc /dev/fd
$ sudo mount -t procfs proc /proc
To make this change permanent, we must add these mount points to the /etc/fstab file. Open the file to edit now:
# echo 'fdesc /dev/fd fdescfs rw 0 0' >> /etc/fstab
# echo 'proc /proc procfs rw 0 0' >> /etc/fstab
perform this command to confirm your env.
$ mount
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
Lastly, Make sure that java can be used.
$ java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)
OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode)
new bee
ReplyDelete