Zum Inhalt

Build OpenJFX 8 for AdoptOpenJDK

Latest builds can be found here

Latest OpenJFX Builds

Requirements

*****************************************************************
Unsupported gradle version 4.10.3 in use.
Only version 4.8 is supported. Use this version at your own risk
*****************************************************************

Folder Struktur

  • C:\cygwin64
  • C:\gradle
  • C:\jdk
  • C:\openjfx

Checkout

C:\cygwin64\Cygwin.bat

$ cd /cygdrive/c/openjfx

$ hg clone http://hg.openjdk.java.net/openjfx/8u-dev/rt

File modifications

.bash_profile or /ect/profile.d/openjfx.sh

export JAVA_HOME=C:/jdk
export PATH="/cygdrive/c/jdk/bin:/cygdrive/c/gradle/bin:$PATH"
export MSVC_VER=14.16.27023

build.gradle

Line 745

Version String for AdoptOpenJdk is different to Oracle, this change will work for both

replace

int ib = v.indexOf(" (build ");

with

int ib = v.indexOf("(build");

Line 747

replace

String ver = v.substring(ib + 8, v.size() - 1);

with

String ver = v.substring(ib + 7, v.size()-1);

buildSrc/genVSproperties.bat

Line 39 + 43

replace

„Professional“ with „Community“

Build

C:\cygwin64\Cygwin.bat

$ cd /cygdrive/c/openjfx/rt

$ gradle :base:test zips -x apps

Build can be customized with the gradle.properties file. Check gradle.properties.template for available options.

Building with apps:

 

apps\samples\Ensemble8\build.xml

Line 187

change

classpath="${platform.home}/lib/ant-javafx.jar"/>

to

classpath="${basedir}/../../../modules/fxpackager/build/libs/ant-javafx.jar"

build.gradle

Scenebuilder does not work for me currently

Line 3317-3320 and 3330-3333

Comment them out

Build

C:\cygwin64\Cygwin.bat

$ cd /cygdrive/c/openjfx/rt

$ gradle :base:test zips

Published inUncategorized

Schreibe den ersten Kommentar

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

*