Developing Matter 1.0 with nRF SDK build failes with "fatal error: jni.h: No such file or directory"

I am following the "Developing Matter 1.0 products with nRF Connect SDK" Video on YT and try to build a Matter device. I have everything already installed the SDK, VSCode etc. I was already working with it before. I updated the nRF connect SDK to be v2.3.0 and also everything else in on the latest version.

If I try to just build the plain matter sample of the light_bulb, it failes with the following error:


c:\...\modules\lib\matter\src\lib\support\JniReferences.cpp:18:10: fatal error: jni.h: No such file or directory
18 | #include <jni.h>
| ^~~~~~~

Is there something missing in my setup? where should I find this jni.h file? I assume this should be just there together with the SDK and I do not have to change anything.

Any suggestions?

Parents
  • Hi,

    I tried updating SDK and toolchain already and I tried again, does not fix it.

    1. Which OS are you running?
      Windows

    2. Which device(s) are you building for?
      1. Are you building from command line or from the VsCode extension?

        Building for nRF52840DK via VSCode extension
         
    3. Have you made any modifications to the SDK, or is the SDK instance pristine, and opened from the toolchain manager?

      no - I freshly installed it just for this. I did had an older version running but in the VSCode extension I am selecting the new one

    4. Have you been able to build Matter samples in older instances of the SDK? For instance nRF Connect v2.2.0?
      No I have not tried that

    5. Can you run "generate support information" from the extension (v2.3.0) and add the information here? 

      {
        "platform": {
          "os": "win32",
          "osVersion": "Windows 10 Pro",
          "osKernel": "10.0.19045",
          "vscode": "1.76.2",
          "electron": "19.1.11",
          "node": "v16.14.2"
        },
        "system": {
          "date": "2023-03-21T17:58:43.982Z",
          "vscodeRoot": "c:\\Users\\Informatic0re\\AppData\\Local\\Programs\\Microsoft VS Code\\resources\\app",
          "nrfConnectForDesktopInstalled": true,
          "vscodeUptime": "00:00:42",
          "osUptime": "02:33:17",
          "cpu": {
            "model": "AMD Ryzen 5 5600 6-Core Processor",
            "speed": "3500 MHz",
            "count": 6
          },
          "memory": {
            "total": "31.91 GB",
            "free": "22.50 GB"
          }
        },
        "workspace": {
          "name": "Untitled (Workspace)",
          "workspaceFile": "1679351572306",
          "folders": [
            "c:\\Users\\Informatic0re\\Documents\\workspace\\OpenThings\\matter_test",
            "c:\\Users\\Informatic0re\\ncs\\v2.3.0\\nrf\\samples\\matter\\light_switch"
          ]
        },
        "extensions": {
          "internal": {
            "nordic-semiconductor.nrf-connect": {
              "version": "2023.2.56",
              "path": "c:\\Users\\Informatic0re\\.vscode\\extensions\\nordic-semiconductor.nrf-connect-2023.2.56-win32-x64",
              "isActive": true
            },
            "nordic-semiconductor.nrf-terminal": {
              "version": "2022.11.29",
              "path": "c:\\Users\\Informatic0re\\.vscode\\extensions\\nordic-semiconductor.nrf-terminal-2022.11.29",
              "isActive": true
            },
            "nordic-semiconductor.nrf-devicetree": {
              "version": "2022.11.153",
              "path": "c:\\Users\\Informatic0re\\.vscode\\extensions\\nordic-semiconductor.nrf-devicetree-2022.11.153",
              "isActive": true
            },
            "nordic-semiconductor.nrf-kconfig": {
              "version": "2022.11.50",
              "path": "c:\\Users\\Informatic0re\\.vscode\\extensions\\nordic-semiconductor.nrf-kconfig-2022.11.50",
              "isActive": true
            }
          },
          "external": {
            "marus25.cortex-debug": null,
            "ms-vscode.cpptools": "1.14.4",
            "ms-vscode-remote.remote-wsl-recommender": "0.0.19",
            "ms-vscode.js-debug": "1.76.1",
            "ms-vscode.js-debug-companion": "1.0.18",
            "ms-vscode.vscode-js-profile-table": "1.0.3",
            "aldijav.golangwithdidi": "0.0.1",
            "espressif.esp-idf-extension": "1.6.0",
            "formulahendry.code-runner": "0.12.0",
            "golang.go": "0.38.0",
            "MS-CEINTL.vscode-language-pack-de": "1.76.2023030809",
            "ms-python.isort": "2022.8.0",
            "ms-python.python": "2023.4.1",
            "ms-python.vscode-pylance": "2023.3.20",
            "ms-toolsai.jupyter": "2023.2.1200692131",
            "ms-toolsai.jupyter-keymap": "1.1.0",
            "ms-toolsai.jupyter-renderers": "1.0.15",
            "ms-toolsai.vscode-jupyter-cell-tags": "0.1.8",
            "ms-toolsai.vscode-jupyter-slideshow": "0.1.5",
            "ms-vscode-remote.remote-wsl": "0.76.1",
            "ms-vscode.cmake-tools": "1.13.45",
            "ms-vscode.cpptools-extension-pack": "1.3.0",
            "ms-vscode.cpptools-themes": "2.0.0",
            "ms-vscode.vscode-serial-monitor": "0.9.0",
            "nhoizey.gremlins": "0.26.0",
            "platformio.platformio-ide": "3.1.1",
            "plorefice.devicetree": "0.1.1",
            "premparihar.gotestexplorer": "0.1.13",
            "quicktype.quicktype": "12.0.46",
            "TobiasTimm.matter": "1.0.0",
            "toit.toit": "1.6.6",
            "trond-snekvik.gnu-mapfiles": "1.1.0",
            "twxs.cmake": "0.0.17",
            "vscode-icons-team.vscode-icons": "12.2.0",
            "zxh404.vscode-proto3": "0.5.5"
          }
        },
        "tools": {
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gcc.exe": "0.15.2",
          "C:\\Program Files (x86)\\SEGGER\\JLink\\JLink.exe": "7.66a",
          "C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\nrfjprog.exe": "10.18.1",
          "C:\\Python39\\Scripts\\nrfutil.exe": null,
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\cmake.exe": "3.20.5",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Scripts\\west.exe": "0.14.0",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\python.exe": "3.8.2",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\ninja.exe": "1.9.0",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\gperf.exe": "3.1",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\dtc.exe": "1.4.7",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\gn.exe": "2082",
          "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\mingw64\\bin\\git.exe": "2.37.3.windows.1",
          "gdbPath": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin\\arm-zephyr-eabi-gdb.exe"
        },
        "sdks": [
          {
            "version": "1.5.0-rc1",
            "path": "c:\\Users\\Informatic0re\\ncs\\v1.5.0-rc1"
          },
          {
            "version": "Zephyr 2.7.0-rc4",
            "path": "c:\\Users\\Informatic0re\\Documents\\workspace\\zephyrproject"
          },
          {
            "version": "2.3.0",
            "path": "c:\\Users\\Informatic0re\\ncs\\v2.3.0"
          }
        ],
        "toolchains": [
          {
            "version": "1.5.0",
            "path": "c:\\Users\\Informatic0re\\ncs\\v1.5.0-rc1\\toolchain"
          },
          {
            "version": "2.3.0",
            "path": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0"
          }
        ],
        "connectedDevices": [
          {
            "serialNumber": "801029576"
          }
        ],
        "deviceProviders": [
          "nrfjprog"
        ],
        "config": {
          "nordic-semiconductor.nrf-connect": {
            "topdir": "${nrf-connect.sdk:2.3.0}",
            "toolchain": {
              "path": "${nrf-connect.toolchain:2.3.0}"
            },
            "ozonePath": "",
            "applications": [
              "${workspaceFolder}",
              "c:\\Users\\Informatic0re\\ncs\\v2.3.0\\nrf\\samples\\matter\\light_switch"
            ],
            "applicationOptions": {},
            "kconfig": {
              "interface": "kconfig",
              "executeInDefaultShell": false
            },
            "welcome": {
              "showOnStartup": true
            },
            "west": {
              "env": {
                "$base": "terminal"
              }
            },
            "boardRoots": [],
            "enableTelemetry": true,
            "taskBindings": {},
            "debugging": {
              "backend": "nRF Debug",
              "flash": true,
              "bindings": {}
            },
            "activeAppFollowActiveEditor": true
          },
          "nordic-semiconductor.nrf-terminal": {
            "terminalMode": "character",
            "scrollBack": 1000
          }
        },
        "environment": {
          "westExe": "west",
          "westEnv": {
            "ELECTRON_RUN_AS_NODE": "1",
            "HOME": "C:\\Users\\Informatic0re",
            "HOMEDRIVE": "C:",
            "HOMEPATH": "\\Users\\Informatic0re",
            "Path": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\mingw64\\bin;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\mingw64\\libexec\\git-core;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\arm-zephyr-eabi\\bin;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Scripts;C:\\Python39\\Scripts\\;C:\\Python39\\;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;E:\\Program Files\\nodejs\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\balena-cli\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\CMake\\bin;C:\\MinGW\\bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Informatic0re\\Documents\\workspace\\esp-idf\\tools;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2020-q4-major\\bin;C:\\Program Files (x86)\\GNU Tools ARM Embedded\\6 2017-q2-update\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Informatic0re\\AppData\\Roaming\\npm;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\hugo;E:\\Exercism;C:\\Users\\Informatic0re\\go\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\gitkraken\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Commands;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\toitware;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\jaguar;C:\\Program Files (x86)\\Nmap;C:\\Python39\\Scripts;C:\\Python39\\;C:\\Users\\Informatic0re\\go\\bin",
            "ZEPHYR_BASE": "c:\\Users\\Informatic0re\\ncs\\v2.3.0\\zephyr",
            "GNUARMEMB_TOOLCHAIN_PATH": "C:\\GNUToolchain\\10-2020-q4-major",
            "ZEPHYR_TOOLCHAIN_VARIANT": "zephyr",
            "ZEPHYR_SDK_INSTALL_DIR": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk",
            "PYTHONPATH": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Lib;c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin\\Lib\\site-packages",
            "Python3_ROOT": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\bin"
          },
          "inherited": {
            "ELECTRON_RUN_AS_NODE": "1",
            "HOME": "C:\\Users\\Informatic0re",
            "HOMEDRIVE": "C:",
            "HOMEPATH": "\\Users\\Informatic0re",
            "Path": "C:\\Python39\\Scripts\\;C:\\Python39\\;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;E:\\Program Files\\nodejs\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\balena-cli\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\CMake\\bin;C:\\MinGW\\bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Informatic0re\\Documents\\workspace\\esp-idf\\tools;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2020-q4-major\\bin;C:\\Program Files (x86)\\GNU Tools ARM Embedded\\6 2017-q2-update\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Informatic0re\\AppData\\Roaming\\npm;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\hugo;E:\\Exercism;C:\\Users\\Informatic0re\\go\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\gitkraken\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Commands;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\toitware;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\jaguar;C:\\Program Files (x86)\\Nmap;C:\\Python39\\Scripts;C:\\Python39\\;C:\\Users\\Informatic0re\\go\\bin",
            "PATH": "C:\\Python39\\Scripts\\;C:\\Python39\\;C:\\Program Files\\Oculus\\Support\\oculus-runtime;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Git\\cmd;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\PuTTY\\;E:\\Program Files\\nodejs\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\ProgramData\\DockerDesktop\\version-bin;C:\\ProgramData\\chocolatey\\bin;C:\\Program Files\\balena-cli\\bin;C:\\Program Files\\Go\\bin;C:\\Program Files\\usbipd-win\\;C:\\Program Files\\CMake\\bin;C:\\MinGW\\bin;C:\\Program Files (x86)\\Nordic Semiconductor\\nrf-command-line-tools\\bin\\;C:\\Users\\Informatic0re\\Documents\\workspace\\esp-idf\\tools;C:\\Program Files (x86)\\GNU Arm Embedded Toolchain\\10 2020-q4-major\\bin;C:\\Program Files (x86)\\GNU Tools ARM Embedded\\6 2017-q2-update\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\Informatic0re\\AppData\\Roaming\\npm;C:\\Users\\Informatic0re\\AppData\\Local\\Microsoft\\WindowsApps;C:\\hugo;E:\\Exercism;C:\\Users\\Informatic0re\\go\\bin;C:\\Users\\Informatic0re\\AppData\\Local\\gitkraken\\bin;C:\\Program Files (x86)\\GnuWin32\\bin;C:\\Commands;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\toitware;C:\\Users\\Informatic0re\\AppData\\Local\\Programs\\jaguar;C:\\Program Files (x86)\\Nmap;C:\\Python39\\Scripts;C:\\Python39\\;C:\\Users\\Informatic0re\\go\\bin",
            "GNUARMEMB_TOOLCHAIN_PATH": "C:\\GNUToolchain\\10-2020-q4-major",
            "ZEPHYR_TOOLCHAIN_VARIANT": "gnuarmemb"
          },
          "toolchainPath": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0",
          "toolchainBinPath": "c:\\Users\\Informatic0re\\ncs\\toolchains\\v2.3.0\\opt\\zephyr-sdk\\arm-zephyr-eabi\\bin",
          "toolchainVersion": "2.3.0"
        },
        "terminal": {
          "shell": "C:\\Program Files\\Git\\bin\\bash.exe",
          "defaultProfile": null
        }
      }


    6. Can you paste the entire build log that results in the missing header error you pasted in the original ticket?

      it seems to be to long? I can not add the log or a file with the log here



  • I tried to add it like you said but when pressing okay nothing happens. I post just the full error log here now and hope this will help already. 

    What I don't really get is: why is there java involved in the build process? So the JNI part has somehow todo with java?

     

    [234/399] c++ obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    FAILED: obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++.exe -MMD -MF obj/src/lib/support/libSupportLayer.JniReferences.cpp.o.d -Wconversion -mthumb -Os -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Werror -Wstack-usage=8192 -Wextra -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -D_DEFAULT_SOURCE -D_SYS__PTHREADTYPES_H_ -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/include/zephyr/posix -DMBEDTLS_CONFIG_FILE=<nrf-config.h> -std=gnu++14 -fno-rtti -Wnon-virtual-dtor -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/drivers/mpsl/clock_control -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/zephyr/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/lib/libc/newlib/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/bluetooth -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/net/lib/sockets/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/settings/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/lib/multithreading_lock/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/subsys/bluetooth/controller/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/drivers/flash -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/tests/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/modules/openthread/platform/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/tinycrypt/lib/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/lib/zcbor/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nfc/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/mpsl/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/mpsl/include/protocol -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/openthread/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/library -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/library -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_802154/driver/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_802154/sl/include -DKERNEL -D__ZEPHYR__=1 -D_FORTIFY_SOURCE=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -DNRF52840_XXAA -DZCBOR_ASSERTS -fno-strict-aliasing -fcheck-new -std=c++14 -fno-exceptions -fno-rtti -imacros C:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/zephyr/include/generated/autoconf.h -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/Users/Informatic0re/ncs/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h --param=min-pagesize=0 -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0=WEST_TOPDIR -specs=nano.specs -std=gnu++14 -DNDEBUG -DCHIP_HAVE_CONFIG_H=1 "-IC:/Program Files/Java/jre1.8.0_181/include" "-IC:/Program Files/Java/jre1.8.0_181/include/linux" -I../../../../../../../modules/lib/matter/src/include -I../../../../../../../modules/lib/matter/src -Igen/include -I../../../../../../../modules/lib/matter/zzz_generated/app-common -I../../../../../../../modules/lib/matter/third_party/nlassert/repo/include -I../../../../../../../modules/lib/matter/third_party/nlio/repo/include -c ../../../../../../../modules/lib/matter/src/lib/support/JniReferences.cpp -o obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    c:\Users\Informatic0re\modules\lib\matter\src\lib\support\JniReferences.cpp:18:10: fatal error: jni.h: No such file or directory
    18 | #include <jni.h>
    | ^~~~~~~
    compilation terminated.
    [235/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff.cpp.o
    [236/399] c++ obj/src/lib/support/libSupportLayer.PersistentStorageAudit.cpp.o
    [237/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff32.cpp.o
    [238/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff16.cpp.o
    [239/399] c++ obj/src/lib/support/libSupportLayer.CHIPPlatformMemory.cpp.o
    [240/399] c++ obj/src/lib/support/libSupportLayer.CHIPArgParser.cpp.o
    [241/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff10.cpp.o
    [242/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff36.cpp.o
    [243/399] c++ obj/src/lib/support/libSupportLayer.ErrorStr.cpp.o
    [244/399] c++ obj/src/lib/support/libSupportLayer.CHIPMem-Malloc.cpp.o
    [245/399] c++ obj/src/lib/support/libSupportLayer.IniEscaping.cpp.o
    [246/399] c++ obj/src/lib/support/libSupportLayer.ThreadOperationalDataset.cpp.o
    [247/399] c++ obj/src/lib/support/logging/libSupportLayer.CHIPLogging.cpp.o
    ninja: build stopped: subcommand failed.
    [427/507] Completed 'mcuboot_subimage'
    FAILED: modules/connectedhomeip/src/chip-gn-stamp/chip-gn-build modules/connectedhomeip/lib/libCHIP.a modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a
    cmd.exe /C "cd /D C:\Users\Informatic0re\ncs\v2.3.0\nrf\samples\matter\light_switch\build_1\modules\connectedhomeip && C:\Users\Informatic0re\ncs\toolchains\v2.3.0\opt\bin\python.exe C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-module/make_gn_args.py @args.tmp > args.gn && C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/bin/gn.exe --root=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter --root-target=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-gn --dotfile=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-gn/.gn --script-executable=C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/bin/python.exe --export-compile-commands gen --check --fail-on-unused-args . && ninja"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\Users\Informatic0re\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'c:\Users\Informatic0re\ncs\v2.3.0\nrf\samples\matter\light_switch\build_1'

    * The terminal process terminated with exit code: 1. 

Reply
  • I tried to add it like you said but when pressing okay nothing happens. I post just the full error log here now and hope this will help already. 

    What I don't really get is: why is there java involved in the build process? So the JNI part has somehow todo with java?

     

    [234/399] c++ obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    FAILED: obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++.exe -MMD -MF obj/src/lib/support/libSupportLayer.JniReferences.cpp.o.d -Wconversion -mthumb -Os -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -Wall -Werror -Wstack-usage=8192 -Wextra -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -D_DEFAULT_SOURCE -D_SYS__PTHREADTYPES_H_ -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/include/zephyr/posix -DMBEDTLS_CONFIG_FILE=<nrf-config.h> -std=gnu++14 -fno-rtti -Wnon-virtual-dtor -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/drivers/mpsl/clock_control -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/zephyr/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/lib/libc/newlib/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/bluetooth -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/net/lib/sockets/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/subsys/settings/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/lib/multithreading_lock/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/subsys/bluetooth/controller/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/drivers/flash -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/tests/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/modules/openthread/platform/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -isystemC:/Users/Informatic0re/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/tinycrypt/lib/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/lib/zcbor/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nfc/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/mpsl/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/mpsl/include/protocol -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/openthread/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/library -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_oberon/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/modules/crypto/mbedtls/library -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/modules/nrfxlib/nrfxlib/nrf_security/src/include/generated -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/ -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/mbedtls -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_security/../crypto/nrf_oberon/include/psa -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_802154/driver/include -isystemC:/Users/Informatic0re/ncs/v2.3.0/nrfxlib/nrf_802154/sl/include -DKERNEL -D__ZEPHYR__=1 -D_FORTIFY_SOURCE=1 -D_ANSI_SOURCE -D__LINUX_ERRNO_EXTENSIONS__ -DUSE_PARTITION_MANAGER=1 -D__PROGRAM_START -DNRF52840_XXAA -DZCBOR_ASSERTS -fno-strict-aliasing -fcheck-new -std=c++14 -fno-exceptions -fno-rtti -imacros C:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch/build_1/zephyr/include/generated/autoconf.h -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mfp16-format=ieee --sysroot=C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/Users/Informatic0re/ncs/v2.3.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h --param=min-pagesize=0 -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0/nrf/samples/matter/light_switch=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/Users/Informatic0re/ncs/v2.3.0=WEST_TOPDIR -specs=nano.specs -std=gnu++14 -DNDEBUG -DCHIP_HAVE_CONFIG_H=1 "-IC:/Program Files/Java/jre1.8.0_181/include" "-IC:/Program Files/Java/jre1.8.0_181/include/linux" -I../../../../../../../modules/lib/matter/src/include -I../../../../../../../modules/lib/matter/src -Igen/include -I../../../../../../../modules/lib/matter/zzz_generated/app-common -I../../../../../../../modules/lib/matter/third_party/nlassert/repo/include -I../../../../../../../modules/lib/matter/third_party/nlio/repo/include -c ../../../../../../../modules/lib/matter/src/lib/support/JniReferences.cpp -o obj/src/lib/support/libSupportLayer.JniReferences.cpp.o
    c:\Users\Informatic0re\modules\lib\matter\src\lib\support\JniReferences.cpp:18:10: fatal error: jni.h: No such file or directory
    18 | #include <jni.h>
    | ^~~~~~~
    compilation terminated.
    [235/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff.cpp.o
    [236/399] c++ obj/src/lib/support/libSupportLayer.PersistentStorageAudit.cpp.o
    [237/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff32.cpp.o
    [238/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff16.cpp.o
    [239/399] c++ obj/src/lib/support/libSupportLayer.CHIPPlatformMemory.cpp.o
    [240/399] c++ obj/src/lib/support/libSupportLayer.CHIPArgParser.cpp.o
    [241/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff10.cpp.o
    [242/399] c++ obj/src/lib/support/verhoeff/libSupportLayer.Verhoeff36.cpp.o
    [243/399] c++ obj/src/lib/support/libSupportLayer.ErrorStr.cpp.o
    [244/399] c++ obj/src/lib/support/libSupportLayer.CHIPMem-Malloc.cpp.o
    [245/399] c++ obj/src/lib/support/libSupportLayer.IniEscaping.cpp.o
    [246/399] c++ obj/src/lib/support/libSupportLayer.ThreadOperationalDataset.cpp.o
    [247/399] c++ obj/src/lib/support/logging/libSupportLayer.CHIPLogging.cpp.o
    ninja: build stopped: subcommand failed.
    [427/507] Completed 'mcuboot_subimage'
    FAILED: modules/connectedhomeip/src/chip-gn-stamp/chip-gn-build modules/connectedhomeip/lib/libCHIP.a modules/connectedhomeip/lib/libMatterDeviceInfoProviderExample.a
    cmd.exe /C "cd /D C:\Users\Informatic0re\ncs\v2.3.0\nrf\samples\matter\light_switch\build_1\modules\connectedhomeip && C:\Users\Informatic0re\ncs\toolchains\v2.3.0\opt\bin\python.exe C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-module/make_gn_args.py @args.tmp > args.gn && C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/bin/gn.exe --root=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter --root-target=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-gn --dotfile=C:/Users/Informatic0re/ncs/v2.3.0/modules/lib/matter/config/nrfconnect/chip-gn/.gn --script-executable=C:/Users/Informatic0re/ncs/toolchains/v2.3.0/opt/bin/python.exe --export-compile-commands gen --check --fail-on-unused-args . && ninja"
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\Users\Informatic0re\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'c:\Users\Informatic0re\ncs\v2.3.0\nrf\samples\matter\light_switch\build_1'

    * The terminal process terminated with exit code: 1. 

Children
  • Hi,

    Informatic0re said:
    I tried to build with v2.2.0 and it went through 

    I didn't catch this message before now. Does this means that it worked in NCS v2.2.0?

    Informatic0re said:
    Can you run "generate support information" from the extension (v2.3.0) and add the information here? 

    From your generated support information I see in your path that there are some Java elements in your path (line 188, 201 and 202 in the support information). I doubt this is what is causing the issue, but could you take a backup of these paths, remove the Java elements from the path, update/reinstall the SDK and try to build once more? If it does not change anything, you could add the elements back to the path. The theory is that those Java versions might conflict with instances that are required to build android/chip tools, which is what jni.h is used for (as shown below)

     

    And also, remember to remove the build folder in the project and not simply run a pristine build. There might still linger some dependencies in the build folder that a pristine build does not clean.

    Kind regards,
    Andreas

  • I didn't catch this message before now. Does this means that it worked in NCS v2.2.0?

    Yes - with 2.2.0 the build is successful 

  • I removed all JAVA PATH references from my environment variables and re-installed the SDK (important, I tried without re-installing which was not working). Now it builds the sample with v2.3.0. strange issue.

  • Hi,

    Glad to hear that this fixed the issue!

    Let me know if this answers all of your questions regarding this topic or if you have any additional questions. As always, feel free to open new cases if new questions rises.

    Kind regards,
    Andreas 

Related