Package Details: jdk11 11.0.21-1

Git Clone URL: https://aur.archlinux.org/jdk11.git (read-only, click to copy)
Package Base: jdk11
Description: Oracle Java 11 Development Kit LTS
Upstream URL: https://www.oracle.com/technetwork/java/javase/downloads/index.html
Licenses: custom
Provides: java-environment, java-environment-jdk, jdk
Submitter: chrko
Maintainer: severach
Last Packager: severach
Votes: 6
Popularity: 0.000000
First Submitted: 2019-03-30 15:00 (UTC)
Last Updated: 2023-11-18 18:41 (UTC)

Required by (921)

Sources (7)

Latest Comments

jesseliu commented on 2022-09-07 21:05 (UTC)

Failure while downloading manual://jdk-11.0.15.1_linux-x64_bin.tar.gz

simple commented on 2021-11-25 06:13 (UTC)

here's PKGBUILD for JDK 11.0.13 (note: you need to also update the PKGBUILD for the complementary JRE11 dependency):

# Maintainer:  Chris Severance aur.severach AatT spamgourmet.com
# Contributor: Daniel Bermond < gmail-com: danielbermond >
# Contributor: Det <nimetonmaili g-mail>

set -u
pkgname='jdk11'
#pkgver='11.0.3'; _build='12'; _hash='37f5e150db5247ab9333b11c1dddcd30'
#pkgver='11.0.4'; _build='10'; _hash='cf1bbcbf431a474eb9fc550051f4ee78'
#pkgver='11.0.5'; _build='10'; _hash='e51269e04165492b90fa15af5b4eb1a5'
#pkgver='11.0.6'; _build='8'; _hash='90eb79fb590d45c8971362673c5ab495'
#pkgver='11.0.7'; _build='8'; _hash='8c7daf89330c48f0b9e32f57169f7bac'
#pkgver='11.0.8'; _build='10'; _hash='dc5cf74f97104e8eac863698146a7ac3'
#pkgver='11.0.9'; _build='7'; _hash='eec35ebefb3f4133bd045b891f05db94'
#pkgver='11.0.10'; _build='8'; _hash='020c4a6d33b74f6a9d2bc6fbf189da81'
#pkgver='11.0.11'; _build='9'; _hash='ab2da78f32ed489abb3ff52fd0a02b1c'
#pkgver='11.0.12'; _build='8'; _hash='f411702ca7704a54a79ead0c2e0942a3'
pkgver='11.0.13'; _build='8'; _hash='f4f115f0cd46a604af9b9627d6b654bc'
_major="${pkgver%%.*}"
pkgrel='1'
pkgdesc="Oracle Java ${_major} Development Kit"
pkgdesc+=' LTS'
arch=('x86_64')
url='https://www.oracle.com/technetwork/java/javase/downloads/index.html'
license=('custom')
depends=('java-environment-common' "jre${_major}>=${pkgver}" 'zlib' 'hicolor-icon-theme')
provides=(
  "java-environment=${_major}"
  "java-environment-jdk=${_major}"
  "jdk=${pkgver}"
)
options=('!strip') # JDK debug-symbols
install="${pkgname}.install"
_srcfil="jdk-${pkgver}_linux-x64_bin.tar.gz"
source=(
  "https://download.oracle.com/otn-pub/java/jdk/${pkgver}+${_build}/${_hash}/${_srcfil}" # Now /otn/, Oracle sso required
  'java.desktop'
  'jconsole.desktop'
  'jshell.desktop'
  'java_16.png'
  'java_48.png'
  'readme.sh'
)
# from oracle-sqldeveloper
DLAGENTS+=("manual::${startdir:-}/readme.sh %o %u")
source[0]="manual://${_srcfil}"
if [ ! -z "${HOME:-}" ]; then # block mksrcinfo
  XDG_DOWNLOAD_DIR="$(xdg-user-dir DOWNLOAD 2>/dev/null)" || :
  if [ -z "${XDG_DOWNLOAD_DIR}" ]; then
    XDG_DOWNLOAD_DIR=~/'Downloads'
  fi
  if [ -s "${XDG_DOWNLOAD_DIR}/${_srcfil}" ] && [ ! -e "${_srcfil}" ]; then
    if type msg > /dev/null 2>&1; then
      set +u
      msg "Scooping files from ${XDG_DOWNLOAD_DIR}" 1>&2
      msg2 "${_srcfil}" 1>&2
      set -u
      ln -sr "${XDG_DOWNLOAD_DIR}/${_srcfil}"
    fi
  fi
fi
unset _srcfil
unset XDG_DOWNLOAD_DIR

md5sums=('d40165abbca7264bd049f4092c0c09c9'
         '985d0d81ece57d0ea633ccc1d3fd78ed'
         'fbd4ddd9069e48a65da6e0cb33db9bc1'
         'e59149780f4d1124f6e339611da9c70b'
         '6181f1ef1e5aeb637ef4cd593106beef'
         '1db7eb33e844d1a41bce196ab622da40'
         '51c8839211cc53f09c9b11a8e28ed1ef')
sha256sums=('f4f115f0cd46a604af9b9627d6b654bc2061a352840e9b95883f1b4959fe26f9'
            '1052634cdcbf50ca14b864b58f3afa53de1706bdc9c593667c29974146212c54'
            '9a84d1b4dd969e867b2dbb6df0d0c44814729e0f1d0c61ab6c54d676eae83b3b'
            '73d686fd6e478a887a51451d7ada7c045f31ce299f65f45e50a793820ee99d85'
            'd27fec1d74f7a3081c3d175ed184d15383666dc7f02cc0f7126f11549879c6ed'
            '7cf8ca096e6d6e425b3434446b0835537d0fc7fe64b3ccba7a55f7bd86c7e176'
            'f1081b08cfbb467277e95b3794191c9963398579733fa8832425b308b5917711')

#PKGEXT='.pkg.tar.gz' # much faster than .xz

DLAGENTS=("${DLAGENTS[@]// -gqb \"\"/ -gq}")
DLAGENTS=("${DLAGENTS[@]//curl -/curl -b 'oraclelicense=a' -}")

package() {
  set -u
  cd "jdk-${pkgver}"

  local _jvmdir="/usr/lib/jvm/java-${_major}-jdk"

  install -d -m755 "${pkgdir}/${_jvmdir}"
  install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"

  # bin
  cp -a 'bin' "${pkgdir}/${_jvmdir}"
  rm "${pkgdir}/${_jvmdir}/bin/"{java,jjs,jrunscript,keytool,pack200}
  rm "${pkgdir}/${_jvmdir}/bin/"{rmid,rmiregistry,unpack200}

  # libs
  install -D -m644 'lib/ct.sym'       -t "${pkgdir}/${_jvmdir}/lib"
  install -D -m644 'lib/libattach.so' -t "${pkgdir}/${_jvmdir}/lib"
  install -D -m644 'lib/libsaproc.so' -t "${pkgdir}/${_jvmdir}/lib"
  cp -a 'lib/jfr' "${pkgdir}/${_jvmdir}/lib"

  cp -a 'include' "${pkgdir}/${_jvmdir}"
  cp -a 'jmods'   "${pkgdir}/${_jvmdir}"

  install -D -m644 'lib/src.zip' -t "${pkgdir}/${_jvmdir}/lib"

  # desktop and icons
  install -D -m644 "${srcdir}/java.desktop"     "${pkgdir}/usr/share/applications/java-java${_major}-jdk.desktop"
  install -D -m644 "${srcdir}/jconsole.desktop" "${pkgdir}/usr/share/applications/jconsole-java${_major}-jdk.desktop"
  install -D -m644 "${srcdir}/jshell.desktop"   "${pkgdir}/usr/share/applications/jshell-java${_major}-jdk.desktop"
  install -D -m644 "${srcdir}/java_16.png" "${pkgdir}/usr/share/icons/hicolor/16x16/apps/java${_major}-jdk.png"
  install -D -m644 "${srcdir}/java_48.png" "${pkgdir}/usr/share/icons/hicolor/48x48/apps/java${_major}-jdk.png"

  # legal/licenses
  cp -a legal/* "${pkgdir}/usr/share/licenses/${pkgname}"
  ln -s "${pkgname}" "${pkgdir}/usr/share/licenses/java${_major}-${pkgname}"
  set +u
}
set +u

silverhikari commented on 2021-10-23 16:19 (UTC)

can you update the package for 11.0.13

Filip98 commented on 2020-03-29 19:23 (UTC)

This package is broken since last year as noted by @wulftone I cannot run javac because jre11 is recognized as "java-11-jdk" by archlinux-java and jdk11 isn't recognized at all

msld commented on 2019-06-04 08:28 (UTC) (edited on 2019-06-04 08:32 (UTC) by msld)

diff --git a/PKGBUILD b/PKGBUILD
index [`e351704`](https://aur.archlinux.org/cgit/aur.git/commit/?h=jdk11&id=e351704)..75904b1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -61,7 +61,7 @@ package() {
   set -u
   cd "jdk-${pkgver}"

-  local _jvmdir="/usr/lib/jvm/java-${_major}-${pkgname}"
+  local _jvmdir="/usr/lib/jvm/java-${_major}-jdk"

   install -d -m755 "${pkgdir}/${_jvmdir}"
   install -d -m755 "${pkgdir}/usr/share/licenses/${pkgname}"

wulftone commented on 2019-04-02 21:24 (UTC)

After I install jre11, I can install jdk11 fine, but it appears to be installed wrong. IntelliJ complains that "The selected directory is not a valid home for JDK". I noticed there is a "java-11-jdk" directory AND a "java-11-jdk11" directory. Also inside "/usr/lib/jvm/java-11-jdk", "conf" is pointing at something invalid: "conf -> ../../../../etc/java11-jre11", which doesn't exist.

wulftone commented on 2019-04-02 20:58 (UTC)

Unfortunately doesn't work out-of-the-box like jdk8 does, complains about "error: target not found: jre<12"