Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javafx package javafx.embed.swt not in java8u5

I'd like to use FXCanvas from the package javafx.embed.swt as shown in this example: http://docs.oracle.com/javafx/2/swt_interoperability/jfxpub-swt_interoperability.htm# But all I can find is javafx.embed.swing package. javafx.embed.swt is simply not existant. What am I doing wrong ? I use java8u5. Is there a special download nessessary or is there a different version of java that contains that package ??

thanks for any hint! Thorsten

like image 470
user1119859 Avatar asked May 24 '14 05:05

user1119859


1 Answers

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

like image 179
Alessandro Avatar answered Sep 25 '22 02:09

Alessandro