B4J Question Ubuntu 22.04 JavaFX error

peacemaker

Expert
Licensed User
Longtime User
Hi, All

Bridge is started OK, it seems, with JavaFX modules, under Ubuntu 22.04:

But the app (B4XSerializator base example) is started with such error:

Googled that it is:
Workaround (https://github.com/javafxports/openjdk-jfx/issues/175#issuecomment-417030981)
java -Djdk.gtk.version=2

This has been fixed in Openjfx12.

But how to fix during B4J debug ?
 
Last edited:

jahswant

Well-Known Member
Licensed User
Longtime User
Platforms

You must build the package on the target platform.
Windows - Java 11 should already be installed. Note that Java 11 is 64 bit only.

OpenJDK 11 + OpenJFX 11 (SDK + jmods) - GPL + classpath exception license
Mac - https://b4xfiles-4c17.kxcdn.com/b4j/mac_jdk-11.0.1.zip
Mac: Follow these instructions: MacSigner - Building notarized Mac packages
Linux - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-11.0.1.zip

OpenJDK 14 (same license):
Mac - https://b4xfiles-4c17.kxcdn.com/b4j/mac_jdk-14.0.1.zip
Linux - https://b4xfiles-4c17.kxcdn.com/b4j/linux_jdk-14.0.1.zip
Windows - https://b4xfiles-4c17.kxcdn.com/jdk-14.0.1.zip

Try with JDK14.

from this thread https://www.b4x.com/android/forum/t...the-simplest-way-to-distribute-ui-apps.99835/
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Really helped, thanks !
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
It's logical, as no UI subsystem on the server, but !
But it's very important addition to my question. It seems, that the settings interface for non-UI app it's better to make based on HTML-forms... As UI app with interface can be used only from another desktop OS...
 
Upvote 0

peacemaker

Expert
Licensed User
Longtime User
Resume: it looks like the development under the newest Linux version - rather stupid idea.
For now it's better to re-install to Ubuntu 20.04. And maybe in a year the 22.04 will be usable
 
Upvote 0