Testing JavaFX with Java14 preview features
nlisker at gmail.com
Mon Apr 20 04:43:08 UTC 2020
I managed to get it working by adding "--enable-preview" in several
places, I'm not sure if they are all needed. There will be a test branch in
my fork with the working build.grade.
On Tue, Apr 14, 2020 at 4:35 AM Nir Lisker <nlisker at gmail.com> wrote:
> It contains:
> Looks like I'll have to do some digging.
> On Tue, Apr 14, 2020 at 2:38 AM Kevin Rushforth <
> kevin.rushforth at oracle.com> wrote:
>> Not sure, but you might check here:
>> That's the list of args that gradle generates to pass to javac (using
>> -- Kevin
>> On 4/13/2020 4:10 PM, Nir Lisker wrote:
>> Thanks, yes, testing on JavaFX itself.
>> I made these changes. I'm getting "error: invalid source release: 14"
>> when trying to build. These are the settings that are output during the
>> Gradle Distribution: Gradle wrapper from target build
>> Gradle Version: 6.3
>> Java Home: C:\Program Files\Java\jdk-14
>> JVM Arguments: None
>> Program Arguments: None
>> Build Scans Enabled: false
>> Offline Mode Enabled: false
>> Gradle Tasks: build
>> This is the full error message:
>> error: invalid source release: 14
>> Usage: javac <options> <source files>
>> use --help for a list of possible options
>> FAILURE: Build failed with an exception.
>> * What went wrong:
>> Execution failed for task ':base:compileJava'.
>> > Compilation failed with exit code 2; see the compiler error output for
>> On Tue, Apr 14, 2020 at 2:00 AM Kevin Rushforth <
>> kevin.rushforth at oracle.com> wrote:
>>> I guess you mean modifying the FX build in your local repo so that you
>>> can test the use of JDK 14 preview features in FX itself? (if you were
>>> just trying to use it from your app you wouldn't need any build changes
>>> in FX). At a minimum you would need to add the "--enable-preview" flag
>>> to compile.options.compilerArgs, and change "sourceCompatibility" from
>>> "11" to "14". Not sure if anything more is needed. I've never tried it.
>>> -- Kevin
>>> On 4/13/2020 1:49 PM, Nir Lisker wrote:
>>> > Hi,
>>> > I would like to test the preview features in Java 14 on JavaFX. What
>>> > changes should I make in the build files to get it working?
>>> > - Nir
More information about the openjfx-dev