openjfx8-devel does not build against build targets COMPILE_WEBKIT and COMPILE_MEDIA. More build targets may fail, too. Omitting these build targets result in runtime errors for some classes, e.g. javafx.scene.web.HTMLEditor for COMPILE_WEBKIT and javafx.scene.media.MediaPlayer for COMPILE_MEDIA. At least for target COMPILE_WEBKIT I already had a deeper look inside the issue and it seems the maven repository dependencies for FreeBSD are missing. In this case webkit depends on webview, which does not define FreeBSD dependencies. See https://repo1.maven.org/maven2/com/sun/webkit/webview-deps/1.3/ for the build dependencies the gradle build script checks.
A commit references this bug: Author: tobik Date: Sat Jul 22 22:05:22 UTC 2017 New revision: 446432 URL: https://svnweb.freebsd.org/changeset/ports/446432 Log: java/openjfx8-devel: Update to a more recent snapshot - Add new default options MEDIA and WEBKIT to enable building of the media and web modules - Take back maintainership Running e.g. AsciidocFX on FreeBSD should be possible now. PR: 218014 Reported by: Dr. Jochen Ra?ler <jochen.rassler@gmail.com>, mr (via mail) Changes: head/java/openjfx8-devel/Makefile head/java/openjfx8-devel/distinfo head/java/openjfx8-devel/files/patch-build.gradle head/java/openjfx8-devel/files/patch-buildSrc_build.gradle head/java/openjfx8-devel/files/patch-modules_graphics_src_main_native-font_pango.c head/java/openjfx8-devel/files/patch-modules_web_src_main_native_Source_cmake_OptionsJava.cmake head/java/openjfx8-devel/pkg-message head/java/openjfx8-devel/pkg-plist