Java on macbook air

I installed Java on my MacBook Air because otherwise LibreOffice Base wouldn’t work properly. I clicked on ‘Advanced’ and pressed ‘Apply’. Now, when I try to create a database, I can’t connect to Java, and if I carry on, LibreOffice crashes.

One remark at first: Base can work without Java!
But the default database (hsqldb embedded) is written in Java, so can not be used without Java.
Also the report-engine is an integrated extension, written in Java, so one needs other reports, if there is no Java.
You should have no problems accessing the bibliography-file (dbase) or using Firebird or external Databases like MariaDB, Postgres etc.

For your actual problem I can’t help much as “MacBook Air” gives no Informations on the version of your OS and the used CPU.
Important point: IMHO you can’t mix Intel and Arm-versions. So for the newer Macs try Arm/Mx-versions of LibreOffice and Java, for older Macs choose Intel/x64-versions (there should be no 32bit options on Mac).

EDIT:There is a wiki on this, so I guess you have read about the jre/jdk-issue on MacOS:
https://wiki.documentfoundation.org/Faq/General/InstallJava

Your installed Java is not shown in settings?
You can not select it?
It crashes, after selection?

Report a bug, if you are willing to describe in more detail what you do, so one can try to recreate this.

Which Java? Please be specific.

JRE or JDK? LO on macOS requires a full JDK.

Which processor is in the MacBook Air - Intel or Arm?

Oracle Java versions with a version naming system of 5 points are known (bug) not to be recognized, e.g. xx.x.x.x.x by LO.

A preferred JDK provider is Adoptium Temurin.

It didn’t work with oracle. But I tried it with Adoptium Temurin and now it works just fine