OpenJDK for OpenWrt




Tutorial Bahasa Indonesia

Jalankan OpenJDK di OpenWrt (musl-based)

Informasi Dukungan

Persiapan

Pemasangan

  1. Buka Putty/Terminal/TTYD/XTERM or similar apps like these.
  2. Jalankan perintah terminal di bawah ini untuk mengunduh script installjdk ke OpenWRT (pilih salah satu dari kedua cara dibawah):

    wget installation:

     wget https://raw.githubusercontent.com/helmiau/openwrt-jdk/main/installjdk.sh -O /root/installjdk && chmod +x /root/installjdk
    

    curl installation:

     curl -sL https://raw.githubusercontent.com/helmiau/openwrt-jdk/main/installjdk.sh > /root/installjdk && chmod +x /root/installjdk
    
  3. Jalankan perintah instalasi, seperti contoh berikut (sesuaikan dengan perangkat masing-masing):

    Informasi perintah:

     ./installjdk device_architecture jdk_version release_version
    
    • Ganti device_architecture dengan arsitektur perangkatmu dari daftar Mendukung architectures dibawah ini diatas.
    • Ganti jdk_version dengan ``versi OpenJDK` diatas.
    • Ganti release_version dengan rilis versi OpenJDK diatas.

    Contoh:

    Saya ingin memasang openjdk8 untuk x86 32-bit dengan rilisan openjdk terbaru, maka jalankan:

     ./installjdk x86 jdk8
    

    Saya ingin memasang openjdk11 untuk aarch64 dengan versi rilis v3.14, maka jalankan:

     ./installjdk aarch64 jdk11 v3.14
    
  4. Reboot lalu jalankan java -version di terminal untuk melihat versi Java yang terpasang.

English Tutorial

Run OpenJDK on OpenWrt (musl-based)

Supported Information

Requirements

Installation

  1. Open Putty/Terminal/TTYD/XTERM or similar apps like these.
  2. Run commands below to download installjdk script to your OpenWRT (choose one of installation method below):

    wget installation:

     wget https://raw.githubusercontent.com/helmiau/openwrt-jdk/main/installjdk.sh -O /root/installjdk && chmod +x /root/installjdk
    

    curl installation:

     curl -sL https://raw.githubusercontent.com/helmiau/openwrt-jdk/main/installjdk.sh > /root/installjdk && chmod +x /root/installjdk
    
  3. Select one of below sample installation:

    Command informations:

     ./installjdk device_architecture jdk_version release_version
    
    • Replace device_architecture with your device arhitecture from supported device architectures above.
    • Replace jdk_version with ``OpenJDK version` above.
    • Replace release_version with OpenJDK release version above.

    Example(s):

    i want to install openjdk8 for x86 32-bit with latest release version, then i run:

     ./installjdk x86 jdk8
    

    i want to install openjdk11 for aarch64 with release version v3.14, so i run:

     ./installjdk aarch64 jdk11 v3.14
    
  4. Reboot and run java -version on terminal to see installed java version on your machine.

Known Bugs

References