@@ -4,7 +4,7 @@ This guide explains how to build Codename One and its Android and iOS ports loca
44
55## Prerequisites
66
7- - ** JDK 11 ** (Codename One also builds with JDK 8, but these steps use JDK 11)
7+ - ** JDK 8 **
88- ** JDK 17** for building the Android port
99- ** Apache Maven 3.6+**
1010- macOS with Xcode (required only for the iOS port)
@@ -16,10 +16,10 @@ The helper scripts in the `scripts/` directory download these dependencies when
1616Download binaries from [ Adoptium] ( https://adoptium.net ) :
1717
1818``` bash
19- # JDK 11 (Linux x64; adjust `_x64_linux_` for your platform)
20- curl -L -o temurin11 .tar.gz https://github.com/adoptium/temurin11 -binaries/releases/download/jdk-11.0.28%2B6/OpenJDK11U-jdk_x64_linux_hotspot_11.0.28_6 .tar.gz
21- tar xf temurin11 .tar.gz
22- export JAVA_HOME=$PWD /jdk-11.0.28+6
19+ # JDK 8 (Linux x64; adjust `_x64_linux_` for your platform)
20+ curl -L -o temurin8 .tar.gz https://github.com/adoptium/temurin8 -binaries/releases/download/jdk8u462-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u462b08 .tar.gz
21+ tar xf temurin8 .tar.gz
22+ export JAVA_HOME=$PWD /jdk8u462-b08
2323
2424# JDK 17 (Linux x64; adjust `_x64_linux_` for your platform)
2525curl -L -o temurin17.tar.gz https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.16%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.16_8.tar.gz
@@ -31,7 +31,7 @@ export PATH="$JAVA_HOME/bin:$PATH"
3131
3232## Preparing the workspace
3333
34- Clone the repository and run the setup script to download JDK 11 and JDK 17, install Maven, build the core modules, and install the Maven archetypes. This step must be performed before building any ports.
34+ Clone the repository and run the setup script to download JDK 8 and JDK 17, install Maven, build the core modules, and install the Maven archetypes. This step must be performed before building any ports.
3535
3636``` bash
3737git clone https://github.com/codenameone/CodenameOne
@@ -44,7 +44,7 @@ The script runs `mvn install` in `maven/`, installs `cn1-maven-archetypes`, and
4444
4545## Building the Android port
4646
47- The Android port uses JDK 17 for compilation while Maven runs with JDK 11 . Run the build script:
47+ The Android port uses JDK 17 for compilation while Maven runs with JDK 8 . Run the build script:
4848
4949``` bash
5050./scripts/build-android-port.sh -DskipTests
@@ -64,9 +64,9 @@ Artifacts are produced in `maven/ios/target`.
6464
6565## Convenience scripts
6666
67- - ` setup-workspace.sh ` – installs Maven, downloads JDK 11 and JDK 17, builds the core modules, installs Maven archetypes, provisions the Codename One build client, and writes ` tools/env.sh ` .
68- - ` build-android-port.sh ` – builds the Android port using JDK 11 for Maven and JDK 17 for compilation.
69- - ` build-ios-port.sh ` – builds the iOS port on macOS with JDK 11 .
67+ - ` setup-workspace.sh ` – installs Maven, downloads JDK 8 and JDK 17, builds the core modules, installs Maven archetypes, provisions the Codename One build client, and writes ` tools/env.sh ` .
68+ - ` build-android-port.sh ` – builds the Android port using JDK 8 for Maven and JDK 17 for compilation.
69+ - ` build-ios-port.sh ` – builds the iOS port on macOS with JDK 8 .
7070
7171## Further reading
7272
0 commit comments