Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
Watch the Java 10 releases instead of Java 9
· 7861350d
Emmanuel Bourg
authored
May 04, 2018
7861350d
Fixed a typo
· f759b626
Emmanuel Bourg
authored
May 04, 2018
f759b626
Show whitespace changes
Inline
Side-by-side
public/checkjdk.php
View file @
f759b626
...
...
@@ -4,12 +4,12 @@
$JDK6_DOWNLOAD_URL
=
"http://hg.openjdk.java.net/jdk6/jdk6/tags"
;
$JDK7_DOWNLOAD_URL
=
"http://www.oracle.com/technetwork/java/javaseproducts/documentation/javase7supportreleasenotes-1601161.html"
;
$JDK8_DOWNLOAD_URL
=
"http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html"
;
$JDK
9
_DOWNLOAD_URL
=
"http
s
://
jdk9.java.net/download/
"
;
$JDK
10
_DOWNLOAD_URL
=
"http://
www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html
"
;
$JAVA6_VERSION
=
trim
(
shell_exec
(
"/usr/bin/wget -qO-
$JDK6_DOWNLOAD_URL
| /bin/sed -n 's/.*\jdk\(6-b[0-9]\+\).*/
\\
1/p' | /usr/bin/head -n 1"
));
$JAVA7_VERSION
=
trim
(
shell_exec
(
"/usr/bin/wget -qO-
$JDK7_DOWNLOAD_URL
| /bin/sed -n 's/.*\([7]\(u[0-9]\+\)\?-b[0-9]\+\).*/
\\
1/p' | /usr/bin/head -n 1"
));
$JAVA8_VERSION
=
trim
(
shell_exec
(
"/usr/bin/wget -qO-
$JDK8_DOWNLOAD_URL
| /bin/sed -n 's/.*\([8]\(u[0-9]\+\)\?-b[0-9]\+\).*/
\\
1/p' | /usr/bin/head -n 1"
));
$JAVA
9
_VERSION
=
trim
(
shell_exec
(
"/usr/bin/wget -qO-
$JDK
9
_DOWNLOAD_URL
| /bin/sed -n 's/.*
\([9]-ea.\(
[0-9]\+\)
\?\)
.*/
9+
\\
2
/p' | /usr/bin/head -n 1"
));
$JAVA
10
_VERSION
=
trim
(
shell_exec
(
"/usr/bin/wget -qO-
$JDK
10
_DOWNLOAD_URL
| /bin/sed -n 's/.*
jdk\/\(10[\.0-9]\++
[0-9]\+\).*/
\\
1
/p' | /usr/bin/head -n 1"
));
?>
...
...
@@ -26,13 +26,13 @@ $JAVA9_VERSION = trim(shell_exec("/usr/bin/wget -qO- $JDK9_DOWNLOAD_URL | /bin/s
<p>
This page tracks the latest versions of Java released by Oracle. Note that
for a given update the Mercurial repository on the OpenJDK site will always
show more recent build numbers. Since they do no map to an actual release
show more recent build numbers. Since they do no
t
map to an actual release
they are ignored.
</p>
<p>
Latest Java releases:
</p>
<ul>
<li><a
href=
"http://hg.openjdk.java.net/jdk
9
/jdk
9
/archive/jdk-
<?=
$JAVA
9
_VERSION
?>
.tar.gz"
>
Java
<?=
$JAVA
9
_VERSION
?>
</a></li>
<li><a
href=
"http://hg.openjdk.java.net/jdk
-updates
/jdk
10u
/archive/jdk-
<?=
$JAVA
10
_VERSION
?>
.tar.gz"
>
Java
<?=
$JAVA
10
_VERSION
?>
</a></li>
<li><a
href=
"http://hg.openjdk.java.net/jdk8u/jdk8u/archive/jdk
<?=
$JAVA8_VERSION
?>
.tar.gz"
>
Java
<?=
$JAVA8_VERSION
?>
</a></li>
<li><a
href=
"http://hg.openjdk.java.net/jdk7u/jdk7u/archive/jdk
<?=
$JAVA7_VERSION
?>
.tar.gz"
>
Java
<?=
$JAVA7_VERSION
?>
</a></li>
<li><a
href=
"http://hg.openjdk.java.net/jdk6/jdk6/archive/jdk
<?=
$JAVA6_VERSION
?>
.tar.gz"
>
Java
<?=
$JAVA6_VERSION
?>
</a></li>
...
...