A fatal error has been detected by the Java Runtime Environment

Hi! I’m using Cordova tu build an android app. When i use cordova build android I receive this error:

archimede@localhost:~/exper/myApp> cordova build
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=undefined (DEPRECATED)
Using Android SDK: /home/archimede/Android/Sdk
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fb6715e7d36, pid=12575, tid=0x00007fb670c51640
#
# JRE version: OpenJDK Runtime Environment (8.0_275-b01) (build 1.8.0_275-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.275-b01 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea 3.17.1
# Distribution: Custom build (Thu Dec  3 19:48:59 UTC 2020)
# Problematic frame:
# V  [libjvm.so+0x653d36]  jni_SetStaticBooleanField+0x96
#
# Core dump written. Default location: /home/archimede/exper/myApp/core or core.12575
#
# An error report file with more information is saved as:
# /home/archimede/exper/myApp/hs_err_pid12575.log
#
# If you would like to submit a bug report, please include
# instructions on how to reproduce the bug and visit:
#   https://icedtea.classpath.org/bugzilla
#
Command was killed with SIGABRT (Aborted): /usr/bin/gradle -p /home/archimede/exper/myApp/platforms/android wrapper -b /home/archimede/exper/myApp/platforms/android/wrapper.gradle


The strange thing is that I get this error in all new projects, but all works well in an ‘old’ project (a project started 4-5 days ago, where I didn’t nothing different to initialize from cordova create app and cordova add platform android).

This is the log file indicated https://pastebin.com/Dyhr1yXG

Looks like your error is indeed due to a fundamental violation of the JRE VM,
The question then is if you did a TW upgrade within the past few days that upgraded your OpenJDK.
If you did an upgrade, then it may be a recent issue in OpenJDK which you can report (with your log) to https://bugzilla.opensuse.org which would likely be forwarded upstream.
There is of course the possibility that your own code is faulty but the way you described your problem suggests the problem isn’t on your side.

Otherwise,
In the meantime you can install a different Java on your machine and switch to that…
You can inspect the available openjdk from the OSS and Update repos

zypper se openjdk

You can verify the openjdk packages that are already installed

zypper se -i openjdk

You can then install another package

Then you can switch between your openjdk by running the following

update-alternatives --config java

Of course,
Although the above searches for the package that contains only the runtime, because you’re building java apps, you should probably be working with the SDK packages which are openjdk-devel.

TSU