Skip to content

Commit 89a0808

Browse files
committed
trying out a cached copy of the JRE to address #5827 and others
1 parent 4fe0cce commit 89a0808

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

build/jre/src/Downloader.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88

99
/**
1010
* Ant Task for downloading the latest JRE or JDK from Oracle.
11+
* This was used to set a cookie properly to retrieve a JRE.
12+
* Nowadays the older versions have been removed from Oracle's site,
13+
* so this is hard wired it to use download.processing.org instead.
1114
*/
1215
public class Downloader extends Task {
16+
static final boolean ORACLE_SUCKS = true; // that's final
17+
1318
static final String COOKIE =
1419
"oraclelicense=accept-securebackup-cookie";
1520

@@ -82,7 +87,6 @@ public void execute() throws BuildException {
8287
throw new BuildException("Starting with 8u121, a hash is required, see https://gist.github.com/P7h/9741922");
8388
}
8489

85-
//download(path, jdk, platform, bits, version, update, build);
8690
try {
8791
download();
8892
} catch (IOException e) {
@@ -111,6 +115,10 @@ void download() throws IOException {
111115
url += hash + "/";
112116
}
113117

118+
if (ORACLE_SUCKS) {
119+
url = "https://download.processing.org/java/";
120+
}
121+
114122
// Finally, add the filename to the end
115123
url += filename;
116124

todo.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
0271 (3.5.5 unlikely)
2+
_ get the jre download to work by using a local copy
3+
X https://github.com/processing/processing/issues/5827
4+
X https://github.com/processing/processing/issues/5860
5+
_ https://github.com/processing/processing/issues/5942
6+
_ https://github.com/processing/processing/issues/6089
27

38
contribs
49
X rename-variable menu allows Java identifiers

0 commit comments

Comments
 (0)