B4J Question Java versions and the IDE

Daestrum

Expert
Licensed User
Longtime User
Does the IDE only allow Java versions 8 and 11 to be compiled ?

If I set the tools path to java 8 javac , it compiles in java 8.
If I set it to java 11 javac, it compiles in java 11.
If I set it to java 14 javac, it compiles in java 8 although the GetSystemProperty("java.version","") reports java 14.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
It will also work with Java 9 and 10.

The recommended versions for now are 8 or 11. These are the long term versions.
If I set it to java 14 javac, it compiles in java 8 although the GetSystemProperty("java.version","") reports java 14.
It will always compile with the javac set in the paths dialog. However Java 14 is currently not supported.
 
Upvote 0

Daestrum

Expert
Licensed User
Longtime User
Because we are using openjdk / openjfx, unless I am mistaken, these don't get updates / bug fixes. So we are basically using the version that was originally posted by yourself, when java 11 was available for use inthe IDE.
 
Upvote 0
Top