We are exploring making this easier, by enabling a developer to build a set of javafx.* modules that can be used with a clean OpenJDK build (without the javafx.* modules). Stay tuned. (completed?)
You will likely need to set the following env variables to point to your VS 2017 installation, since Microsoft no longer sets such variables. This presumes that:
- You installed JDK 11 13 in
- You installed the Community edition of Visual Studio 2017 in
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community. If this isn't set correctly, you might see an error during the build saying that
- The folder name under
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVCis
14.11.25503. If this isn't set correctly, you might see an error during the
:graphics:compileDecoraNativeShadersWinbuild task saying that
cl.exeis missing. If you update VS, the folder name might change and you'll have to reconfigure the variable.
export VS150COMNTOOLS="C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\Build" export JAVA_HOME="C:/Program Files/Java/jdk-1113" export MSVC_VER=14.11.25503
Gradle is the primary build tool for building OpenJFX. Since the repository includes a Gradle wrapper that will download the correct Gradle version when needed, you do not need to manually install Gradle. We currently use Gradle 45.83 for jfx-dev (IMPORTANT: Only this version is regularly tested). If you want to generate a wrapper yourself (for example, you want to build OpenJFX with a different Gradle version), then you will need to install Gradle.
You will need Apache Ant 1.810.25 to build the OpenJFX apps (IMPORTANT: there are known issues with later versions of antant 1.9.x, so get exactly use either version 1.10.5 or 1.8.2).
JDK_HOMEto point to the root of your jdk-N release.
Note: on windows, the JAVA_HOME and JDK_HOME variables must be in DOS format (e.g., "C:/Program Files/..." rather than "/cygdrive/c/Program Files/..."), although you can use forward slashes ('/'). Test your settings with:
# for the active development stream, currently targeted for JDK 1213 hg clone http://hg.openjdk.java.net/openjfx/jfx-dev/rt