Skip to content

Commit d660d43

Browse files
committed
Downgrade to openjdk8
This is the only supported option for the IDE and crashes otherwise. See arduino/Arduino#11642
1 parent 4f2f562 commit d660d43

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

cc.arduino.arduinoide.json

+11-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"runtime-version": "20.08",
66
"sdk": "org.freedesktop.Sdk",
77
"sdk-extensions": [
8-
"org.freedesktop.Sdk.Extension.openjdk11"
8+
"org.freedesktop.Sdk.Extension.openjdk8"
99
],
1010
"rename-icon": "arduino",
1111
"build-options": {
@@ -35,7 +35,7 @@
3535
"name": "openjdk",
3636
"buildsystem": "simple",
3737
"build-commands": [
38-
"/usr/lib/sdk/openjdk11/install.sh"
38+
"/usr/lib/sdk/openjdk8/install.sh"
3939
]
4040
},
4141
"shared-modules/libusb/libusb.json",
@@ -60,12 +60,12 @@
6060
"buildsystem": "simple",
6161
"build-options": {
6262
"env": {
63-
"PATH": "/usr/bin:/usr/lib/sdk/openjdk11/bin",
64-
"JAVA_HOME": "/usr/lib/sdk/openjdk11/jvm/openjdk-11"
63+
"PATH": "/usr/bin:/usr/lib/sdk/openjdk8/bin",
64+
"JAVA_HOME": "/usr/lib/sdk/openjdk8/jvm/java-8-openjdk"
6565
}
6666
},
6767
"build-commands": [
68-
"ant --execdebug build",
68+
"./ant/bin/ant --execdebug build",
6969
"mkdir -p /app/bin /app/Arduino",
7070
"cp -a linux/work/* /app/Arduino",
7171
"ln -s /app/Arduino/arduino /app/bin",
@@ -327,6 +327,12 @@
327327
"url": "http://downloads.arduino.cc/tools/arduinoOTA-1.3.0-linux_amd64.tar.bz2",
328328
"sha256": "aa45ee2441ffc3a122daec5802941d1fa2ac47adf5c5c481b5e0daa4dc259ffa",
329329
"dest": "build/linux"
330+
},
331+
{
332+
"type": "archive",
333+
"url": "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.11-bin.tar.xz",
334+
"sha256": "baa049855cdecbefa62539555824058e52412e5ebe8f102e1db944cb762e06d9",
335+
"dest": "build/ant"
330336
}
331337
]
332338
},

0 commit comments

Comments
 (0)