This because the package javafx.embed.swt
was moved from the /lib/ext/jfxrt.jar
to /lib/jfxswt.jar
. You need to add this last explicitly to see the FXCanvas class.
This is the link to the issue: Separate javafx.embed.swt from jfxrt.jar
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…