Karate: javafx on java 11

Created on 23 Jan 2019  路  5Comments  路  Source: intuit/karate

Can not build intuit/karate on java 11.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.0:testCompile (default-testCompile) on project karate-junit4: Compilation failure
[ERROR] /home/dev/projects/karate/karate/karate-junit4/src/test/java/com/intuit/karate/junit4/demos/UiRunner.java:[14,12] cannot access javafx.application.Application
[ERROR] class file for javafx.application.Application not found

bug fixed

All 5 comments

oracle has removed javaFX form Java Development Kit (JDK) 11, hence need to provide dependency on javafx-controls module. I have added the dependency on pom.xml as a fix and will send the pull request.

    `<dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>12-ea+9</version>
    </dependency>`

@shiluka thanks ! looks good.

one observation is that the "fatjar" size is now 25 MB instead of 17 MB. I guess it is not too bad :|

I also notice the log has stopped appearing in the textarea in the UI - hope someone can take a look

I guess the JAR may become a little more bigger when we use GraalVM, ref #646

@ptrthomas observed the logging issue after 0.9.1 itself.

@babusekaran thanks, that is what I thought. needs fixing.

released 0.9.2

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ianrenauld picture ianrenauld  路  4Comments

ampc picture ampc  路  5Comments

bAmrish picture bAmrish  路  3Comments

76creates picture 76creates  路  3Comments

bbchristians picture bbchristians  路  4Comments