JavaFX-11 with VSCode

I’m going to run the HelloFX sample for Eclipse from the OpenJFX samples. After I open the sample with VSCode, I see the reported error: [Java] The import javafx cannot be resolved [268435846]. This obviously means that JavaFX classes are not resolved, and even if there is an entry in the .classpath file: <classpathentry kind=”con” … Read more

Unable to import org.openqa.selenium.WebDriver using Selenium and Java 11

As per Can’t compile Java9 module with selenium-java as dependency it seems the Selenium packages can’t be compiled with Java 9 due to split packages and till May 15, 2018 Selenium wasn’t fully compatible with Java 9. But as per this comment @Jarob22 mentioned, Selenium works just fine using Java 10. Java 9 is already … Read more

Unable to compile simple Java 10 / Java 11 project with Maven

As of 30Jul, 2018 to fix the above issue, one can configure the java version used within maven to any up to JDK/11 and make use of the maven-compiler-plugin:3.8.0 to specify a release of either 9,10,11 without any explicit dependencies. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <release>11</release> <!–or <release>10</release>–> </configuration> </plugin> Note:- The default value for … Read more