Skip to content

Commit

Permalink
java: Update version from 8u141 to 9.0.1
Browse files Browse the repository at this point in the history
Java 9 was released in September 2017. It supports HiDPI displays [1].
Most changes are detaled in the *Java Platform, Standard Edition Oracle
JDK 9 Migration Guide* [2].

Switch to the new version scheme.

> ### New Version-String Scheme ###
>
> JDK 9 provides a new simplified version-string format. If your code
> relies on the version-string format to distinguish major, minor,
> security, and patch update releases, then you may need to update it.
>
> The format of the new version-string is:
>
> $MAJOR.$MINOR.$SECURITY.$PATCH
>
> For example, under the old scheme, the Java 9u5 security release would
> have the version string 1.9.0_5-b20.
>
> Under the new scheme, the short version of the same release is 9.0.1,
> and the long version is 9.0.1+20.
>
> This change affects java -version and related system properties, such
> as java.runtime.version, java.vm.version, java.specification.version,
> and java.vm.specification.version.
>
> A simple Java API to parse, validate, and compare version strings has
> been added. See java.lang.Runtime.Version.
>
> See Version String Format in Java Platform, Standard Edition
> Installation Guide, and JEP 223: New Version-String Scheme.

Tested on *keineahnung*.

[1] http://openjdk.java.net/jeps/263
[2] https://docs.oracle.com/javase/9/migrate/
  • Loading branch information
pmenzel committed Nov 15, 2017
1 parent 98d778d commit 53c2d0b
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions java.be0
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
#!/bin/env beesh

# BEE_VERSION java-1.8.0_141-0
# BEE_VERSION java-9.0.1-0

# http://www.oracle.com/technetwork/java/javase/downloads/index.html


SRCURL[0]="file:///src/mariux/download/jdk-8u${PKGEXTRAVERSION}-linux-x64.tar.gz"
#SRCURL[1]="/src/mariux/download/UnlimitedJCEPolicyJDK7.zip"
SRCURL[0]="file:///src/mariux/download/jdk-${PKGVERSION}_linux-x64_bin.tar.gz"

PATCHURL[0]=""

BEE_EXTRACT_STRIP=0

mee_patch() {
unzip /src/mariux/download/jce_policy-8.zip
}

mee_install() {
mkdir -p ${D}/usr/local/bin

mv ${S}/jdk${PKGFULLVERSION} ${D}/usr/local/java
mv ${S}/jdk-${PKGVERSION} ${D}/usr/local/java

for i in $(ls ${D}/usr/local/java/bin) ; do
ln -s /usr/local/java/bin/${i} ${D}/usr/local/bin/${i}
Expand All @@ -28,10 +23,3 @@ mee_install() {
mkdir -p ${D}/usr/lib/mozilla/plugins
ln -s /usr/local/java/jre/lib/amd64/libnpjp2.so ${D}/usr/lib/mozilla/plugins/libnpjp2.so
}

mee_install_post() {
cp -v \
${S}/UnlimitedJCEPolicyJDK8/US_export_policy.jar \
${S}/UnlimitedJCEPolicyJDK8/local_policy.jar \
${D}/usr/local/java/jre/lib/security/
}

0 comments on commit 53c2d0b

Please sign in to comment.