In whole the question - why is it not good to use some latest Java SDK with B4X ?
Is it not the best (latest improved\fixed errors) if to update the SDK files set ?
Anyway, Java version 22 is detected not correct as 8 (v.18, 19 are detected correctly). And JavaFX is "not visible" (sure, /javafx folder is here).
B4J Version: 10.00
Parsing code. (1.22s) Java Version: 8
Building folders structure. (0.18s)
Running custom action. (0.12s)
Compiling code. (1.49s)
Compiling layouts code. (0.05s)
Organizing libraries. (0.00s)
Compiling generated Java code. Error
src\peacemaker\orionlab\main.java:7: error: package javafx.application does not exist
public class main extends javafx.application.Application{
^
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
only showing the first 1 errors, of 325 total; use -Xmaxerrs if you would like to see more
In whole the question - why is it not good to use some latest Java SDK with B4X ?
Is it not the best (latest improved\fixed errors) if to update the SDK files set ?
Anyway, Java version 22 is detected not correct as 8 (v.18, 19 are detected correctly). And JavaFX is "not visible" (sure, /javafx folder is here).
Imagine your app becomes very popular and then a bug/vulnerability is discovered in the JRE you distributed. Then it becomes an admin nightmare for you.
In whole the question - why is it not good to use some latest Java SDK with B4X ?
Is it not the best (latest improved\fixed errors) if to update the SDK files set ?
Anyway, Java version 22 is detected not correct as 8 (v.18, 19 are detected correctly). And JavaFX is "not visible" (sure, /javafx folder is here).
You could benefit from some bug fix or corrected vulnerability.
But if latest Java contain even new functionalities you will not benefit of them until B4A will be upgraded to use them.
I think it should work in this way.
But as told before, better to stick to LTS version for better support.
Not exactly correct.
1. We are talking about B4J here.
2. B4J doesn't need to be upgraded to use new features of Java. Like any native API, it should be called with a new library or JavaObject or inline Java.
Seems, clear: B4X compilers, i think, use some fixed code patterns to implement functions, and they will not be changed until Erel may edit the IDE code.
So, benefit is just for bug fixes from new SDK only.
Seems, clear: B4X compilers, i think, use some fixed code patterns to implement functions, and they will not be changed until Erel may edit the IDE code.
So, benefit is just for bug fixes from new SDK only.
The Java version used by the IDE doesn't have any effect on the B4A app. The device already includes its own runtime engine. You cannot use Java features not supported by Android runtime.